Skip to content

Instantly share code, notes, and snippets.

@binderclip
Created February 7, 2018 02:29
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 binderclip/4748614b9cc9d6f4171140d327cb51ce to your computer and use it in GitHub Desktop.
Save binderclip/4748614b9cc9d6f4171140d327cb51ce to your computer and use it in GitHub Desktop.
pre-commit-config sample
# 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