summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-07 09:03:16 -0800
committerDavid Lord <davidism@gmail.com>2020-03-07 09:03:16 -0800
commitdbde11d228471f81a3a7c1b29f204b93157b8018 (patch)
tree8a00f35aacc62089d23db9365320ca58d02526a9
parente46c923223233910f803dddb858a4a885f2aeab3 (diff)
downloadclick-style.tar.gz
run pre-commit during testsstyle
-rw-r--r--.azure-pipelines.yml18
-rw-r--r--tox.ini6
2 files changed, 9 insertions, 15 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index d88465a..86e7010 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -30,6 +30,8 @@ strategy:
python.version: '2.7'
Docs:
TOXENV: docs
+ Style:
+ TOXENV: style
pool:
vmImage: $(vmImage)
@@ -43,19 +45,5 @@ steps:
- script: pip --disable-pip-version-check install -U tox
displayName: Install tox
- - script: tox -s false -- --junit-xml=test-results.xml
+ - script: tox
displayName: Run tox
-
- - task: PublishTestResults@2
- inputs:
- testResultsFiles: test-results.xml
- testRunTitle: $(Agent.JobName)
- condition: eq(variables['hasTestResults'], 'true')
- displayName: Publish test results
-
- - task: PublishCodeCoverageResults@1
- inputs:
- codeCoverageTool: Cobertura
- summaryFileLocation: coverage.xml
- condition: eq(variables['hasTestResults'], 'true')
- displayName: Publish coverage results
diff --git a/tox.ini b/tox.ini
index 30c16da..beed51d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
py{38,37,36,35,27,py3,py}
+ style
docs
skip_missing_interpreters = true
@@ -10,6 +11,11 @@ deps =
colorama
commands = pytest --tb=short --basetemp={envtmpdir} {posargs}
+[testenv:style]
+deps = pre-commit
+skip_install = true
+commands = pre-commit run --all-files --show-diff-on-failure
+
[testenv:docs]
deps = -r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html