mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Add trailing comma precommit hook and bump old ones.
This commit is contained in:
parent
5e6bb82835
commit
b4e8474769
@ -1,35 +1,52 @@
|
|||||||
|
repos:
|
||||||
- repo: git@github.com:pre-commit/pre-commit-hooks.git
|
- repo: git@github.com:pre-commit/pre-commit-hooks.git
|
||||||
sha: v0.9.1
|
rev: v1.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: autopep8-wrapper
|
- id: autopep8-wrapper
|
||||||
|
language_version: python2
|
||||||
args:
|
args:
|
||||||
- --in-place
|
- --in-place
|
||||||
- --aggressive
|
- --aggressive
|
||||||
- --aggressive
|
- --aggressive
|
||||||
|
- --ignore=E731
|
||||||
- --max-line-length=131
|
- --max-line-length=131
|
||||||
- --ignore=E126,E128,E402,E731
|
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
language_version: python2
|
||||||
- id: check-ast
|
- id: check-ast
|
||||||
|
language_version: python2
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
language_version: python2
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
|
language_version: python2
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
|
language_version: python2
|
||||||
- id: double-quote-string-fixer
|
- id: double-quote-string-fixer
|
||||||
|
language_version: python2
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
language_version: python2
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
|
language_version: python2
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
language_version: python2
|
||||||
args:
|
args:
|
||||||
- --max-complexity=10
|
- --max-complexity=10
|
||||||
- --max-line-length=131
|
- --max-line-length=131
|
||||||
- --ignore=E126,E128,E402,E731
|
- --ignore=E126
|
||||||
|
- --ignore=E128
|
||||||
|
- --ignore=E731
|
||||||
- --exclude=bin/autojump_argparse.py
|
- --exclude=bin/autojump_argparse.py
|
||||||
|
- id: name-tests-test
|
||||||
|
language_version: python2
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
|
language_version: python2
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
language_version: python2
|
||||||
- repo: git@github.com:asottile/reorder_python_imports.git
|
- repo: git@github.com:asottile/reorder_python_imports.git
|
||||||
sha: v0.3.5
|
rev: v1.1.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
language_version: python2.7
|
language_version: python2
|
||||||
- repo: https://github.com/asottile/add-trailing-comma
|
- repo: git@github.com:asottile/add-trailing-comma
|
||||||
sha: v0.6.1
|
rev: v0.7.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
|
Loading…
Reference in New Issue
Block a user