Skip to content

Commit

Permalink
faq: Clarify how Ruff and Black treat line-length.
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed May 2, 2023
1 parent ac600bb commit 91a47a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/faq.md
Expand Up @@ -3,7 +3,9 @@
## Is Ruff compatible with Black?

Yes. Ruff is compatible with [Black](https://github.com/psf/black) out-of-the-box, as long as
the `line-length` setting is consistent between the two.
the `line-length` setting is consistent between the two. Ruff and Black treat `line-length`
differently because Black does not wrap all long lines (for example, comments) while Ruff will
still flag those as long lines.

As a project, Ruff is designed to be used alongside Black and, as such, will defer implementing
stylistic lint rules that are obviated by autoformatting.
Expand Down

0 comments on commit 91a47a8

Please sign in to comment.