Skip to content

Instantly share code, notes, and snippets.

@TonyPythoneer
Created January 4, 2018 10:20
Show Gist options
  • Save TonyPythoneer/e8f5144bd37a797d753d9cc52f35af13 to your computer and use it in GitHub Desktop.
Save TonyPythoneer/e8f5144bd37a797d753d9cc52f35af13 to your computer and use it in GitHub Desktop.
pre-commit
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.8.0
hooks:
- id: trailing-whitespace
exclude: \.(js|html)$
- id: flake8
language_version: python2.7
args:
- --exclude=*/*migrations/*
- id: check-byte-order-marker
- id: requirements-txt-fixer
args:
- requirements.txt
- requirements_dev.txt
- id: check-ast
language_version: python2.7
- id: autopep8-wrapper
language_version: python2.7
args:
- -i
- --ignore=E501
- id: check-yaml
- id: debug-statements
language_version: python2.7
- id: end-of-file-fixer
language_version: python2.7
- id: fix-encoding-pragma
language_version: python2.7
- repo: git://github.com/FalconSocial/pre-commit-python-sorter
sha: b57843b0b874df1d16eb0bef00b868792cb245c2
hooks:
- id: python-import-sorter
args:
- --silent-overwrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment