From 6eb7af5a4edaae0d4b8afcd946f1671c9deffe0f Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 24 May 2018 13:51:01 +0200 Subject: [PATCH] experimentally add pre-commit for linting in travis --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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