add pre-commit and enforce on travis (#37)

* add pre-commit and enforce on travis
This commit is contained in:
Dave Gallant
2019-10-14 22:18:01 -04:00
committed by GitHub
parent f72dd82771
commit 53666c643f
11 changed files with 611 additions and 584 deletions

View File

@@ -11,11 +11,10 @@ matrix:
dist: xenial
sudo: true
before_install:
- "pip install -U pip"
- "python setup.py install"
- pip install -U pip
install:
- pip install tox-travis
- pip install pytest
- pip install pylint
- python setup.py install
- pip install -r requirements_dev.txt
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
script:
- tox