experimentally add pre-commit for linting in travis

This commit is contained in:
Ronny Pfannschmidt 2018-05-24 13:51:01 +02:00
parent 9ed1289b01
commit 6eb7af5a4e
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,9 @@
sudo: false sudo: false
language: python language: python
stages:
- linting
- test
- deploy
python: python:
- '3.6' - '3.6'
install: install:
@ -53,6 +57,13 @@ jobs:
on: on:
tags: true tags: true
repo: pytest-dev/pytest 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 script: tox --recreate