Skip to content

[CI] Migrate from YAPF to Black #21311

@bveeramani

Description

@bveeramani

Overview

The Ray Team has decided to format the Ray Python code with Black. This means that going forward, changes to Python code must adhere to the Black code style.

We'll be updating ./scripts/format.sh, so if you're a contributor, your workflow shouldn't change.

Motivation

We're switching to Black because:

  • Code formatted with Black is more readable than code formatted with YAPF.
  • Black is faster than YAPF.
  • Black is the most popular Python formatting tool.

For more information about the motivation behind this change, read the full proposal.

Implementation Plan

We're planning on rolling out the changes in three phases.

Phase One:

Phase Two:

Phase Three:

Timeline

Phase Due Date Status
I 1/1 ✅ Done
II 1/15 1/29 ✅ Done
III 1/31 ✅ Done

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions