diff --git a/requirements_lint.txt b/requirements_lint.txt new file mode 100644 index 0000000..2ad0119 --- /dev/null +++ b/requirements_lint.txt @@ -0,0 +1,4 @@ +black==19.10b0 +flake8==3.7.9 +pydocstyle==4.0.1 +pylint==2.4.4 diff --git a/tox.ini b/tox.ini index bf47625..a731aa9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36, py37, py38 +envlist = py36, py37, py38, lint skip_missing_interpreters = True [testenv] @@ -8,3 +8,16 @@ commands = deps = -rrequirements.txt -rrequirements_test.txt + +[testenv:lint] +basepython = python3 +ignore_errors = True +commands = + black --check ./ + flake8 camacqplugins scripts tests + pylint camacqplugins scripts tests + pydocstyle camacqplugins scripts tests +deps = + -rrequirements.txt + -rrequirements_lint.txt + -rrequirements_test.txt