Skip to content

Commit b025b6d

Browse files
committed
Run pre-commit hooks in tox (and thus travis)
1 parent b07572e commit b025b6d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- repo: git@github.com:pre-commit/pre-commit-hooks
1+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
22
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70
33
hooks:
44
- id: trailing-whitespace
@@ -11,12 +11,12 @@
1111
- id: name-tests-test
1212
- id: requirements-txt-fixer
1313
- id: flake8
14-
- repo: git@github.com:pre-commit/pre-commit
14+
- repo: https://github.com/pre-commit/pre-commit.git
1515
sha: 8dba3281d5051060755459dcf88e28fc26c27526
1616
hooks:
1717
- id: validate_config
1818
- id: validate_manifest
19-
- repo: git@github.com:asottile/reorder_python_imports
19+
- repo: https://github.com/asottile/reorder_python_imports.git
2020
sha: 3d86483455ab5bd06cc1069fdd5ac57be5463f10
2121
hooks:
2222
- id: reorder-python-imports

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ commands =
1414
coverage report --show-missing --fail-under 99
1515
flake8 {[tox]project} testing tests setup.py
1616
# pylint {[tox]project} testing tests setup.py
17+
pre-commit run --all-files
1718

1819
[testenv:venv]
1920
envdir = venv-{[tox]project}

0 commit comments

Comments
 (0)