| 1 |
[flake8] |
| 2 |
extend-select= |
| 3 |
; Use `raise from` inside `except` for error handling |
| 4 |
; https://docs.python.org/3/tutorial/errors.html#exception-chaining |
| 5 |
B904 |
| 6 |
; Use Counter() instead of defaultdict(int) to avoid excessive memory use: |
| 7 |
B910 |
| 8 |
ignore= |
| 9 |
; module level import not at top of file |
| 10 |
E402, |
| 11 |
; line break before binary operator |
| 12 |
W503, |
| 13 |
; line break after binary operator |
| 14 |
W504 |
| 15 |
; "experimental" SIM9xx rules (flake8-simplify) |
| 16 |
SIM9 |
| 17 |
; explicitly concatenated strings (flake8-implicit-str-concat) |
| 18 |
ISC003 |
| 19 |
; not all exception subclass __init__ args passed to super __init__ |
| 20 |
; see https://github.com/cylc/cylc-flow/issues/7059 |
| 21 |
B042 |
| 22 |
|
| 23 |
per-file-ignores= |
| 24 |
; TYPE_CHECKING block suggestions |
| 25 |
; B904 needs explicitly excepting because it's added in extend-select |
| 26 |
tests/*: A, B, B904, C, E731, TC, ISC, N, SIM |
| 27 |
|
| 28 |
; for clarity we don't merge 'with Conf():' context trees |
| 29 |
tests/unit/parsec/*: B, B904, C, SIM, TC |
| 30 |
|
| 31 |
exclude= |
| 32 |
build, |
| 33 |
dist, |
| 34 |
.git, |
| 35 |
__pycache__, |
| 36 |
.tox, |
| 37 |
**graphql_subscribe.py, |
| 38 |
**data_messages_pb2.py |
| 39 |
paths = |
| 40 |
./cylc/flow |
| 41 |
./tests |