Stop using tox and start linting

This commit is contained in:
Andrew Godwin 2017-11-28 17:59:59 -08:00
parent a57ef2fa54
commit 03aa8548fe
2 changed files with 13 additions and 12 deletions

View File

@ -6,6 +6,17 @@ python:
- "3.5" - "3.5"
- "3.6" - "3.6"
install: pip install tox tox-travis env:
- TWISTED="twisted==17.1.0"
- TWISTED="twisted"
install:
- pip install $TWISTED isort unify flake8 -e .[tests]
- pip freeze
script:
- pytest
- flake8
- isort --check-only --recursive daphne tests
- unify --check-only --recursive --quote \" daphne tests
script: tox

10
tox.ini
View File

@ -1,10 +0,0 @@
# We test against the oldest supported Twisted release, and the current release.
[tox]
envlist = py{35,36}-twisted-{old,new}
[testenv]
deps =
twisted-old: twisted==17.1.0
commands =
pip install -e .[tests]
pytest