Skip to content

Instantly share code, notes, and snippets.

@guptarohit
Created November 14, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guptarohit/698227ef134c5e3af05e77dc0537b653 to your computer and use it in GitHub Desktop.
Save guptarohit/698227ef134c5e3af05e77dc0537b653 to your computer and use it in GitHub Desktop.
pre-commit hooks configuration
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
line_length = 88
multi_line_output = 3
include_trailing_comma = true
known_third_party = ["celery", "django", "environ", "pyquery", "pytz", "redis", "requests", "rest_framework"]
[tool.flake8]
max-line-length = 88
max-complexity = 18
select = "B,C,E,F,W,T4,B9"
ignore = "E203, E266, E501, W503, F403, F401"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment