Skip to content

Commit

Permalink
Merge pull request #105 from chriskuehl/all-repos_autofix_pre-commit-…
Browse files Browse the repository at this point in the history
…autoupdate

Run pre-commit autoupdate
  • Loading branch information
asottile authored May 27, 2020
2 parents a8d50cd + a17b784 commit 62cc69d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -14,23 +14,23 @@ repos:
- id: check-byte-order-marker
- id: fix-encoding-pragma
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
rev: 3.8.0
hooks:
- id: flake8
exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.3
rev: v1.5.2
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.4.0
rev: v2.3.0
hooks:
- id: reorder-python-imports
args: [
'--add-import', 'from __future__ import absolute_import',
'--add-import', 'from __future__ import unicode_literals',
]
- repo: https://github.com/asottile/add-trailing-comma
rev: v1.0.0
rev: v2.0.1
hooks:
- id: add-trailing-comma
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ matrix:
python: 3.6
- env: TOXENV=pypy
python: pypy
- env: TOXENV=pre-commit
python: 3.6
install: pip install coveralls tox
script: tox
after_success: coveralls
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py35,py36,pypy
envlist = py27,py35,py36,pypy,pre-commit
tox_pip_extensions_ext_venv_update = true

[testenv]
Expand All @@ -9,8 +9,11 @@ commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --fail-under 100
pre-commit install -f --install-hooks
pre-commit run --all-files

[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure

[flake8]
max-line-length = 119
Expand Down

0 comments on commit 62cc69d

Please sign in to comment.