|
1 | 1 | [flake8] |
2 | 2 | max-line-length = 80 |
| 3 | + |
3 | 4 | # Select (turn on) |
4 | | -# * Complexity violations reported by mccabe (C) - |
5 | | -# http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes |
6 | | -# * Documentation conventions compliance reported by pydocstyle (D) - |
7 | | -# http://www.pydocstyle.org/en/stable/error_codes.html |
8 | | -# * Default errors and warnings reported by pycodestyle (E and W) - |
| 5 | +# * C: Complexity violations reported by mccabe - |
| 6 | +# https://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes |
| 7 | +# * C4: Default errors and warnings reported by flake8-comprehensions - |
| 8 | +# https://github.com/adamchainz/flake8-comprehensions#rules |
| 9 | +# * D: Documentation conventions compliance reported by pydocstyle - |
| 10 | +# https://github.com/PyCQA/pydocstyle/blob/master/docs/error_codes.rst |
| 11 | +# * DUO: Default errors and warnings reported by dlint - |
| 12 | +# https://github.com/dlint-py/dlint/tree/master/docs |
| 13 | +# * E: Default errors reported by pycodestyle - |
9 | 14 | # https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes |
10 | | -# * Default errors reported by pyflakes (F) - |
11 | | -# http://flake8.pycqa.org/en/latest/glossary.html#term-pyflakes |
12 | | -# * Default warnings reported by flake8-bugbear (B) - |
| 15 | +# * F: Default errors reported by pyflakes - |
| 16 | +# https://flake8.pycqa.org/en/latest/glossary.html#term-pyflakes |
| 17 | +# * N: Default errors and warnings reported by pep8-naming - |
| 18 | +# https://github.com/PyCQA/pep8-naming#error-codes |
| 19 | +# * NQA: Default errors and warnings reported by flake8-noqa - |
| 20 | +# https://github.com/plinss/flake8-noqa#error-codes |
| 21 | +# * W: Default warnings reported by pycodestyle - |
| 22 | +# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes |
| 23 | +# * B: Default warnings reported by flake8-bugbear - |
13 | 24 | # https://github.com/PyCQA/flake8-bugbear#list-of-warnings |
14 | | -# * The B950 flake8-bugbear opinionated warning - |
| 25 | +# * B950: Bugbear opinionated warning for line too long - |
15 | 26 | # https://github.com/PyCQA/flake8-bugbear#opinionated-warnings |
16 | | -select = C,D,E,F,W,B,B950 |
17 | | -# Ignore flake8's default warning about maximum line length, which has |
18 | | -# a hard stop at the configured value. Instead we use |
19 | | -# flake8-bugbear's B950, which allows up to 10% overage. |
20 | | -# |
21 | | -# Also ignore flake8's warning about line breaks before binary |
22 | | -# operators. It no longer agrees with PEP8. See, for example, here: |
23 | | -# https://github.com/ambv/black/issues/21. Guido agrees here: |
24 | | -# https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b. |
25 | | -ignore = E501,W503 |
| 27 | +select = C,C4,D,DUO,E,F,N,NQA,W,B,B950 |
| 28 | + |
| 29 | +# Ignore |
| 30 | +# * E203: pycodestyle's default warning about whitespace before ':' because Black enforces |
| 31 | +# an equal amount of whitespace around slice operators (':'). |
| 32 | +# * E501: pycodestyle's default warning about maximum line length, which has a hard stop |
| 33 | +# at the configured value. Instead we use flake8-bugbear's B950, which |
| 34 | +# allows up to 10% overage. |
| 35 | +# * W503: pycodestyle's warning about line breaks before binary operators. It no longer |
| 36 | +# agrees with PEP8. See, for example, here: |
| 37 | +# https://github.com/ambv/black/issues/21 |
| 38 | +# Guido agrees here: |
| 39 | +# https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b |
| 40 | +ignore = E203,E501,W503 |
0 commit comments