mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
azure pipelines [skip travis] [skip appveyor]
This commit is contained in:
parent
09e64e8ff6
commit
9c6edab726
9 changed files with 72 additions and 85 deletions
15
tox.ini
15
tox.ini
|
|
@ -1,20 +1,19 @@
|
|||
[tox]
|
||||
project = pre_commit
|
||||
# These should match the travis env list
|
||||
envlist = py27,py36,py37,pypy
|
||||
envlist = py27,py36,py37,pypy,pypy3,pre-commit
|
||||
|
||||
[testenv]
|
||||
deps = -rrequirements-dev.txt
|
||||
passenv = LOCALAPPDATA
|
||||
passenv = HOME LOCALAPPDATA
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
coverage report --fail-under 100
|
||||
pre-commit run --all-files
|
||||
pre-commit install
|
||||
|
||||
[testenv:venv]
|
||||
envdir = venv-{[tox]project}
|
||||
commands =
|
||||
[testenv:pre-commit]
|
||||
skip_install = true
|
||||
deps = pre-commit
|
||||
commands = pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
[pep8]
|
||||
ignore = E265,E501,W504
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue