Skip to content

Commit

Permalink
Upgrade pre-commit and hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Aug 21, 2017
1 parent bf104a2 commit 85c1d3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
27 changes: 10 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v0.9.1
sha: v0.9.2
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -10,11 +10,7 @@
exclude: /template/
- id: debug-statements
- id: name-tests-test
args:
- --django
# Once https://github.com/pre-commit/pre-commit-hooks/pull/221 is
# merged and released this line can be removed
files: ^tests/.+\.py$
args: [--django]
- id: requirements-txt-fixer
- id: flake8
exclude: ^docs/source/conf.py$
Expand All @@ -25,22 +21,19 @@
sha: v0.3.5
hooks:
- id: reorder-python-imports
args:
- --remove-import
- from __future__ import absolute_import
- --remove-import
- from __future__ import division
- --remove-import
- from __future__ import print_function
- --remove-import
- from __future__ import unicode_literals
args: [
'--remove-import', 'from __future__ import absolute_import',
'--remove-import', 'from __future__ import division',
'--remove-import', 'from __future__ import print_function',
'--remove-import', 'from __future__ import unicode_literals',
]
- repo: https://github.com/asottile/pyupgrade
sha: v1.1.2-1
sha: v1.2.0
hooks:
- id: pyupgrade
args: [--py3-plus]
- repo: https://github.com/asottile/add-trailing-comma
sha: v0.6.2
sha: v0.6.4
hooks:
- id: add-trailing-comma
args: [--py36-plus]
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ flake8==2.5.0
mock==2.0.0
path.py==8.1
pep8==1.5.7
pre-commit==0.16.0
pre-commit==0.16.3
pylint==1.7.2
pytest==2.7.3
sphinx==1.4.1

0 comments on commit 85c1d3f

Please sign in to comment.