-
Notifications
You must be signed in to change notification settings - Fork 10
/
.flake8
30 lines (26 loc) · 1.07 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[flake8]
# Recommend matching the black line length (default 88),
# rather than using the flake8 default of 79:
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
# flake8/pycodechecker give false positives on black code
E203,
# Most of our test cases deliberately violate style checks:
per-file-ignores =
# These are meant to trigger black changes:
tests/test_changes/hello_world.py: E201,E202,E211,W391,BLK100
tests/test_changes/hello_world_EOF.py: W292,BLK100
tests/without_pyproject_toml/ordinary_quotes.py: Q000,BLK100
# These are not meant to trigger black changes:
tests/test_cases/no_closing_bracket.py: E902
tests/test_fail/mixed_tab_spaces.py: E101,E999,W191
tests/with_pyproject_toml/ordinary_quotes.py: Q000
tests/test_cases/mixed_tab_spaces.py: E101,E999,W191
# The bad TOML file breaks black checking this file:
tests/with_bad_toml/hello_world.py: BLK997,
# =====================
# flake-quote settings:
# =====================
# Set this to match black style:
inline-quotes = double