Unverified Kaydet (Commit) 4dff0db2 authored tarafından Anthony Sottile's avatar Anthony Sottile Kaydeden (comit) GitHub

Merge pull request #74 from asottile/all-repos_autofix_azure-pre-commit

speed up azure jobs
...@@ -13,6 +13,7 @@ resources: ...@@ -13,6 +13,7 @@ resources:
ref: refs/tags/v0.0.4 ref: refs/tags/v0.0.4
jobs: jobs:
- template: job--pre-commit.yml@asottile
- template: job--python-tox.yml@asottile - template: job--python-tox.yml@asottile
parameters: parameters:
toxenvs: [py27, py37] toxenvs: [py27, py37]
......
[tox] [tox]
project = add-trailing-comma envlist = py27,py36,py37,pypy,pypy3,pre-commit
# These should match the travis env list
envlist = py27,py35,py36,pypy
[testenv] [testenv]
deps = -rrequirements-dev.txt deps = -rrequirements-dev.txt
...@@ -9,12 +7,12 @@ commands = ...@@ -9,12 +7,12 @@ commands =
coverage erase coverage erase
coverage run -m pytest {posargs:tests} coverage run -m pytest {posargs:tests}
coverage report --fail-under 100 coverage report --fail-under 100
pre-commit install -f --install-hooks pre-commit install
pre-commit run --all-files
[testenv:venv] [testenv:pre-commit]
envdir = venv-{[tox]project} skip_install = true
commands = deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[pep8] [pep8]
ignore = E265,E501,W504 ignore = E265,E501,W504
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment