Skip to content

Instantly share code, notes, and snippets.

@srtab
Created January 7, 2020 23:55
Show Gist options
  • Save srtab/a9e60bc27e9ee1abffee2240741de0bc to your computer and use it in GitHub Desktop.
Save srtab/a9e60bc27e9ee1abffee2240741de0bc to your computer and use it in GitHub Desktop.
Base shared config for flakehell
[tool.flakehell]
format = "colored"
max_line_length = 120
exclude = ["*/migrations/*", "*/static/*", "*/settings/*", "*/node_modules/*"]
max-complexity = 10
import-order = false
# list of plugins and rules for them
[tool.flakehell.plugins]
flake8-bandit = ["+*", "-S101", "-S308", "-S703"]
flake8-black = ["+*"]
flake8-bugbear = ["+*"]
flake8-django = ["+*", "-DJ01"]
flake8-eradicate = ["+*"]
flake8-executable = ["+*"]
flake8-isort = ["+*"]
flake8-logging-format = ["+*"]
flake8-print = ["+*"]
flake8-string-format = ["+*"]
mccabe = ["+*"]
pep8-naming = ["+*", "-N812"]
pycodestyle = ["+*", "-E203", "-E231", "-W503"]
pyflakes = ["+*"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment