experimentally add pre-commit for linting in travis
This commit is contained in:
parent
9ed1289b01
commit
6eb7af5a4e
11
.travis.yml
11
.travis.yml
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue