Skip to content

Commit 6d7906e

Browse files
authored
Merge pull request #380 from pre-commit/all-repos_autofix_azure-pre-commit
speed up azure jobs
2 parents 1f6de3d + 9eb0d69 commit 6d7906e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ resources:
1313
ref: refs/tags/v0.0.8
1414

1515
jobs:
16+
- template: job--pre-commit.yml@asottile
1617
- template: job--python-tox.yml@asottile
1718
parameters:
1819
toxenvs: [py27, py37]
1920
os: windows
20-
pre_test:
21-
- script: git lfs
2221
- template: job--python-tox.yml@asottile
2322
parameters:
24-
toxenvs: [pypy, py27, py36, py37]
23+
toxenvs: [pypy, pypy3, py27, py36, py37]
2524
os: linux
26-
pre_test:
27-
- script: git lfs

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py36,py37,pypy3
2+
envlist = py27,py36,py37,pypy,pypy3,pre-commit
33

44
[testenv]
55
deps = -rrequirements-dev.txt
@@ -12,8 +12,12 @@ commands =
1212
coverage erase
1313
coverage run -m pytest {posargs:tests}
1414
coverage report --fail-under 100
15-
pre-commit install -f --install-hooks
16-
pre-commit run --all-files
15+
pre-commit install
16+
17+
[testenv:pre-commit]
18+
skip_install = true
19+
deps = pre-commit
20+
commands = pre-commit run --all-files --show-diff-on-failure
1721

1822
[pep8]
1923
ignore=E265,E501,W504

0 commit comments

Comments
 (0)