From b4e8474769b1677af1761e3621d29bbb815b0490 Mon Sep 17 00:00:00 2001 From: William Ting Date: Thu, 6 Sep 2018 21:25:39 -0700 Subject: [PATCH] Add trailing comma precommit hook and bump old ones. --- .pre-commit-config.yaml | 87 ++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93f076b..c9d7a9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,35 +1,52 @@ -- repo: git@github.com:pre-commit/pre-commit-hooks.git - sha: v0.9.1 - hooks: - - id: autopep8-wrapper - args: - - --in-place - - --aggressive - - --aggressive - - --max-line-length=131 - - --ignore=E126,E128,E402,E731 - - id: check-added-large-files - - id: check-ast - - id: check-case-conflict - - id: check-docstring-first - - id: debug-statements - - id: double-quote-string-fixer - - id: end-of-file-fixer - - id: fix-encoding-pragma - - id: flake8 - args: - - --max-complexity=10 - - --max-line-length=131 - - --ignore=E126,E128,E402,E731 - - --exclude=bin/autojump_argparse.py - - id: requirements-txt-fixer - - id: trailing-whitespace -- repo: git@github.com:asottile/reorder_python_imports.git - sha: v0.3.5 - hooks: - - id: reorder-python-imports - language_version: python2.7 -- repo: https://github.com/asottile/add-trailing-comma - sha: v0.6.1 - hooks: - - id: add-trailing-comma +repos: +- repo: git@github.com:pre-commit/pre-commit-hooks.git + rev: v1.4.0 + hooks: + - id: autopep8-wrapper + language_version: python2 + args: + - --in-place + - --aggressive + - --aggressive + - --ignore=E731 + - --max-line-length=131 + - id: check-added-large-files + language_version: python2 + - id: check-ast + language_version: python2 + - id: check-case-conflict + language_version: python2 + - id: check-docstring-first + language_version: python2 + - id: debug-statements + language_version: python2 + - id: double-quote-string-fixer + language_version: python2 + - id: end-of-file-fixer + language_version: python2 + - id: fix-encoding-pragma + language_version: python2 + - id: flake8 + language_version: python2 + args: + - --max-complexity=10 + - --max-line-length=131 + - --ignore=E126 + - --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