mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Run pre-commit hooks in tox (and thus travis)
This commit is contained in:
parent
b07572e325
commit
b025b6d55f
2 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
||||
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
|
|
@ -11,12 +11,12 @@
|
|||
- id: name-tests-test
|
||||
- id: requirements-txt-fixer
|
||||
- id: flake8
|
||||
- repo: git@github.com:pre-commit/pre-commit
|
||||
- repo: https://github.com/pre-commit/pre-commit.git
|
||||
sha: 8dba3281d5051060755459dcf88e28fc26c27526
|
||||
hooks:
|
||||
- id: validate_config
|
||||
- id: validate_manifest
|
||||
- repo: git@github.com:asottile/reorder_python_imports
|
||||
- repo: https://github.com/asottile/reorder_python_imports.git
|
||||
sha: 3d86483455ab5bd06cc1069fdd5ac57be5463f10
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -14,6 +14,7 @@ commands =
|
|||
coverage report --show-missing --fail-under 99
|
||||
flake8 {[tox]project} testing tests setup.py
|
||||
# pylint {[tox]project} testing tests setup.py
|
||||
pre-commit run --all-files
|
||||
|
||||
[testenv:venv]
|
||||
envdir = venv-{[tox]project}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue