1
0
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:
William Ting 2018-09-06 21:25:39 -07:00
parent 5e6bb82835
commit b4e8474769

View File

@ -1,35 +1,52 @@
- repo: git@github.com:pre-commit/pre-commit-hooks.git repos:
sha: v0.9.1 - repo: git@github.com:pre-commit/pre-commit-hooks.git
hooks: rev: v1.4.0
- id: autopep8-wrapper hooks:
args: - id: autopep8-wrapper
- --in-place language_version: python2
- --aggressive args:
- --aggressive - --in-place
- --max-line-length=131 - --aggressive
- --ignore=E126,E128,E402,E731 - --aggressive
- id: check-added-large-files - --ignore=E731
- id: check-ast - --max-line-length=131
- id: check-case-conflict - id: check-added-large-files
- id: check-docstring-first language_version: python2
- id: debug-statements - id: check-ast
- id: double-quote-string-fixer language_version: python2
- id: end-of-file-fixer - id: check-case-conflict
- id: fix-encoding-pragma language_version: python2
- id: flake8 - id: check-docstring-first
args: language_version: python2
- --max-complexity=10 - id: debug-statements
- --max-line-length=131 language_version: python2
- --ignore=E126,E128,E402,E731 - id: double-quote-string-fixer
- --exclude=bin/autojump_argparse.py language_version: python2
- id: requirements-txt-fixer - id: end-of-file-fixer
- id: trailing-whitespace language_version: python2
- repo: git@github.com:asottile/reorder_python_imports.git - id: fix-encoding-pragma
sha: v0.3.5 language_version: python2
hooks: - id: flake8
- id: reorder-python-imports language_version: python2
language_version: python2.7 args:
- repo: https://github.com/asottile/add-trailing-comma - --max-complexity=10
sha: v0.6.1 - --max-line-length=131
hooks: - --ignore=E126
- id: add-trailing-comma - --ignore=E128
- --ignore=E731
- --exclude=bin/autojump_argparse.py
- id: name-tests-test
language_version: python2
- id: requirements-txt-fixer
language_version: python2
- id: trailing-whitespace
language_version: python2
- repo: git@github.com:asottile/reorder_python_imports.git
rev: v1.1.1
hooks:
- id: reorder-python-imports
language_version: python2
- repo: git@github.com:asottile/add-trailing-comma
rev: v0.7.0
hooks:
- id: add-trailing-comma