Add pre-commit files and linting using pre-commit

This commit is contained in:
Bruno Oliveira
2018-07-27 17:46:25 -03:00
parent 3776f3b74b
commit 1ed3884da9
3 changed files with 34 additions and 11 deletions

View File

@@ -25,12 +25,17 @@ install: pip install tox setuptools_scm
script: tox
stages:
- linting
- test
- name: deploy
if: repo = pytest-dev/pytest-xdist AND tag IS present
jobs:
include:
- stage: linting
python: '3.6'
script:
- tox -e linting
- stage: test
# python x env above are already included into this stage
- python: "2.7"