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

speed up azure jobs
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 974a705..3156958 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -13,15 +13,12 @@
       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
diff --git a/tox.ini b/tox.ini
index dd80ff6..a6b3fb4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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 @@
     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