summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-10-05 15:33:26 +0100
committerCalum Lind <calumlind@gmail.com>2018-10-05 18:45:37 +0100
commit9e29fe41113b78e5d38621eacfc9f817f8b9b3d2 (patch)
tree5b069f99f3edbe2f97279775b9d91831c303edad /tox.ini
parenta8a4fb69c099b82f3d35ac94e6198996971749dc (diff)
downloaddeluge-9e29fe41113b78e5d38621eacfc9f817f8b9b3d2.tar.gz
deluge-9e29fe41113b78e5d38621eacfc9f817f8b9b3d2.tar.bz2
deluge-9e29fe41113b78e5d38621eacfc9f817f8b9b3d2.zip
[Tests] Lint with pre-commit
- Add lint section to tox. - Replace flake8 with lint on Travis and remove commented out sections. - Remove flake8 from appveyor to reduce sequential testing time.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index fc008dfce..99e5a06cb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
# Usage: `pip install tox` and then run `tox` from this directory.
[tox]
-envlist = py27, flake8, docs
+envlist = py27, lint, docs
minversion=2.0
[base]
@@ -79,6 +79,14 @@ commands = {[testenv:pydef]commands}
# Code linting
# =======================
+[testenv:lint]
+passenv = HOMEPATH SSH_AUTH_SOCK
+deps =
+ pre-commit
+ slimit
+commands =
+ pre-commit run --all-files
+
[testenv:flake8]
# Disable site packages to avoid using system flake8 which uses
# hardcoded python path which imports the wrong libraries.