Merge pull request #380 from pre-commit/all-repos_autofix_azure-pre-commit

speed up azure jobs
This commit is contained in:
Anthony Sottile 2019-04-28 16:42:08 -07:00 committed by GitHub
commit 6d7906e131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -13,15 +13,12 @@ resources:
ref: refs/tags/v0.0.8
jobs:
- template: job--pre-commit.yml@asottile
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [py27, py37]
os: windows
pre_test:
- script: git lfs
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [pypy, py27, py36, py37]
toxenvs: [pypy, pypy3, py27, py36, py37]
os: linux
pre_test:
- script: git lfs

10
tox.ini
View file

@ -1,5 +1,5 @@
[tox]
envlist = py27,py36,py37,pypy3
envlist = py27,py36,py37,pypy,pypy3,pre-commit
[testenv]
deps = -rrequirements-dev.txt
@ -12,8 +12,12 @@ 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
pre-commit install
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[pep8]
ignore=E265,E501,W504