Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #30 from asottile/all-repos_autofix_azure-pre-commit
Browse files Browse the repository at this point in the history
speed up azure jobs
  • Loading branch information
asottile authored Apr 28, 2019
2 parents 9a3f18c + bf1a6a6 commit 3d3756f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ resources:
ref: refs/tags/v0.0.4

jobs:
- template: job--pre-commit.yml@asottile
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [py27, py37]
Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[tox]
# These should match the travis env list
envlist = py27,py35,py36,pypy
envlist = py27,py36,py37,pypy,pypy3,pre-commit

[testenv]
deps = -rrequirements-dev.txt
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --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

0 comments on commit 3d3756f

Please sign in to comment.