diff --git a/.travis.yml b/.travis.yml index b0ed7bf29..0c6aa629f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ sudo: false language: python +stages: +- linting +- test +- deploy python: - '3.6' install: @@ -53,6 +57,13 @@ jobs: on: tags: true repo: pytest-dev/pytest + - stage: linting + python: '3.6' + install: + - pip install pre-commit + - pre-commit install-hooks + script: + - pre-commit run --all-files script: tox --recreate