Skip to content

Instantly share code, notes, and snippets.

@daviwesley
Last active August 25, 2020 22:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviwesley/308b808076dfc895233655e30ad07b2b to your computer and use it in GitHub Desktop.
Save daviwesley/308b808076dfc895233655e30ad07b2b to your computer and use it in GitHub Desktop.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
language_version: python3
- id: trailing-whitespace
- id: debug-statements
language_version: python3
- id: fix-encoding-pragma
language_version: python3
args: [--remove]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args:
[
"--ignore=F403,W504,W503,F841,E401,F401,E402",
"--max-line-length=120",
"--exclude=**/migrations/*.py, */statics, settings.py",
]
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
args:
[
"--line-length=120",
"--line-length=120",
"--exclude=/statics, manage.py, asgi.py",
]
language_version: python3
exclude: migrations
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
exclude: migrations
args: ["-m 6", "-l 120"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment