Skip to content

Instantly share code, notes, and snippets.

@mackjoner
Created January 8, 2018 09:34
Show Gist options
  • Save mackjoner/f6ce10722e7eff3578cfb836437251ac to your computer and use it in GitHub Desktop.
Save mackjoner/f6ce10722e7eff3578cfb836437251ac to your computer and use it in GitHub Desktop.
flake8
[flake8]
# ~/.config/flake8
# it's not a bug that we aren't using all of hacking, ignore:
# F812: list comprehension redefines ...
# H101: Use TODO(NAME)
# H202: assertRaises Exception too broad
# H233: Python 3.x incompatible use of print operator
# H301: one import per line
# H306: imports not in alphabetical order (time, os)
# H401: docstring should not start with a space
# H403: multi line docstrings should end on a new line
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
ignore = F812,H101,H202,H233,H301,H306,H401,H403,H404,H405,H501,E226,E302,E41
max-line-length = 120
exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
# The conf file is mostly autogenerated, ignore it
docs/source/conf.py,
# The old directory contains Flake8 2.0
old,
# This contains our built documentation
build,
# This contains builds of flake8 that we don't want to check
dist,
tests/*
max-complexity = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment