aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-01-28 19:25:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-01-28 19:25:50 +0000
commit33ce5acd438fbb81522fffeb81e2d1a58861b57f (patch)
treeaafd7ad1af9fa050f64382947fb43887abc9e95a
parent465c14ae555791404d798d4857d46b6db397a7b4 (diff)
parent1f1d078a0846f4903c2425a30da86933221e2cb9 (diff)
Merge "Add Tox commands to lint Python code"
-rw-r--r--tox.ini21
1 files changed, 21 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..3d01e10
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,21 @@
+[tox]
+envlist = flake8
+skipsdist = True
+
+[testenv]
+deps = -rrequirements.txt
+basepython = python3
+
+# Store flake8 config here intead of .flake8
+[flake8]
+ignore =
+ # Ignore 'line-too-long' warnings
+ E501
+exclude =
+ src/manage.py
+
+[testenv:flake8]
+deps =
+ -rrequirements.txt
+ flake8
+commands = flake8 src/