Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document disabling E704 #3888

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
# B905 should be enabled when we drop support for 3.9
ignore = E203, E266, E501, W503, B905, B907
ignore = E203, E266, E501, E704, W503, B905, B907
# line length is intentionally set to 80 here because black uses Bugbear
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 80
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/using_black_with_other_tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ limit of `88`, _Black_'s default. This explains `max-line-length = 88`.
```ini
[flake8]
max-line-length = 88
extend-ignore = E203
extend-ignore = E203, E704
```

</details>
Expand Down
4 changes: 2 additions & 2 deletions docs/the_black_code_style/current_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ If you use Flake8, you have a few options:
max-line-length = 80
...
select = C,E,F,W,B,B950
extend-ignore = E203, E501
extend-ignore = E203, E501, E704
```

The rationale for E950 is explained in
Expand All @@ -184,7 +184,7 @@ If you use Flake8, you have a few options:
```ini
[flake8]
max-line-length = 88
extend-ignore = E203
extend-ignore = E203, E704
```

An explanation of why E203 is disabled can be found in the [Slices section](#slices) of
Expand Down