Last active
August 25, 2020 22:28
-
-
Save daviwesley/308b808076dfc895233655e30ad07b2b to your computer and use it in GitHub Desktop.
This file contains 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
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