Created
February 7, 2018 02:29
-
-
Save binderclip/4748614b9cc9d6f4171140d327cb51ce to your computer and use it in GitHub Desktop.
pre-commit-config sample
This file contains hidden or 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
# See http://pre-commit.com for more information | |
# See http://pre-commit.com/hooks.html for more hooks | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
sha: v1.2.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: autopep8-wrapper | |
args: | |
- --ignore=E501 | |
exclude: ^libs/xxx/gen/.*$ | |
- id: check-docstring-first | |
- id: check-json | |
- id: check-added-large-files | |
- id: check-yaml | |
- id: debug-statements | |
- id: name-tests-test | |
- id: requirements-txt-fixer | |
- id: flake8 | |
args: | |
- --ignore=E501 | |
- --jobs=1 | |
exclude: ^libs/xxx/gen/.*$ | |
- repo: https://github.com/asottile/reorder_python_imports | |
sha: v0.3.5 | |
hooks: | |
- id: reorder-python-imports | |
language_version: python3.6 | |
- repo: https://github.com/asottile/pyupgrade | |
sha: v1.1.4 | |
hooks: | |
- id: pyupgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment