summaryrefslogtreecommitdiffstats
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
commit8ef0c2df68848f7c185ba226a3bc788c39297bb3 (patch)
tree1aa9cf0d762bb1953d85318b0269b3aae2480859
parent461b5d10e05d9ce0067586145fcf7d32ce9117a7 (diff)
parentfec60830441602591c43309dd1d564f08198dca6 (diff)
Merge "Add Tox commands to lint Python code"
-rw-r--r--dashboard/tox.ini21
1 files changed, 21 insertions, 0 deletions
diff --git a/dashboard/tox.ini b/dashboard/tox.ini
new file mode 100644
index 0000000..3d01e10
--- /dev/null
+++ b/dashboard/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/