Skip to content

Commit

Permalink
Add W503 to default flake8 ignore list (psf#894)
Browse files Browse the repository at this point in the history
W503 and W504 are mutually exclusive, to do with splitting binary operators across lines. Black reformats code according to W504, putting the operator on the start of the newline, therefore W503 needs to be ignored in the suggested Flake8 config to use with Black.
  • Loading branch information
adamchainz authored and JelleZijlstra committed Jun 16, 2019
1 parent 5206560 commit 1fbf725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ you are probably already using. You'd do it like this:
max-line-length = 80
...
select = C,E,F,W,B,B950
ignore = E501
ignore = E501,W503
```

You'll find *Black*'s own .flake8 config file is configured like this.
Expand Down

0 comments on commit 1fbf725

Please sign in to comment.