Created
January 18, 2024 15:41
-
-
Save Hrissimir/c7b4e3f3914ac57a21affc6e99841f97 to your computer and use it in GitHub Desktop.
Sample config file for Flake8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [flake8] | |
| count = True | |
| exclude = | |
| *.pyc, | |
| *.egg, | |
| .bzr, | |
| .eggs, | |
| .git, | |
| .github, | |
| .hatch, | |
| .hg, | |
| .nox, | |
| .svn, | |
| .tox, | |
| .venv, | |
| __pycache__, | |
| CVS, | |
| docs/source/conf.py, | |
| build, | |
| dist, | |
| htmlcov, | |
| old | |
| filename = *.py | |
| hang-closing = True | |
| ignore = D100,D103,D104,D105,D202,D412,E121,E123,E126,E203,E226,E24,E704,Q000,W503,W504 | |
| extend-ignore = | |
| # Unnecessary list call around sorted() | |
| C413 | |
| # H101: Use TODO(NAME) | |
| H101, | |
| # H202: assertRaises Exception too broad | |
| H202, | |
| # H301: one import per line | |
| H301, | |
| # H306: imports not in alphabetical order (time, os) | |
| H306, | |
| # H401: docstring should not start with a space | |
| H401, | |
| # H403: multi line docstrings should end on a new line | |
| H403, | |
| # H404: multi line docstring should start without a leading new line | |
| H404, | |
| # H405: multi line docstring summary not separated with an empty line | |
| H405, | |
| # H501: Do not use self.__dict__ for string formatting | |
| H501, | |
| # E133: closing bracket is missing indentation | |
| E133, | |
| # E501 line too long (this is already taken care by pylint) | |
| E501 | |
| per-file-ignores = | |
| __init__.py: F401,F403, | |
| __about__.py: F401, | |
| setup.py:E121, | |
| test_*.py: A001,D102 | |
| max-line-length = 120 | |
| max-doc-length = 120 | |
| indent-size = 4 | |
| show-source = True | |
| extend-immutable-calls = | |
| pathlib.Path, | |
| Path | |
| docstring-convention = google | |
| jobs = 8 | |
| tee = True | |
| builtins = | |
| _, | |
| _LE, | |
| _LW | |
| doctests = True | |
| max-complexity = 15 | |
| require-plugins = | |
| mccabe, | |
| pyflakes, | |
| pycodestyle, | |
| flake8-builtins, | |
| flake8-comprehensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment