diff options
author | Paul Belanger <pabelanger@redhat.com> | 2019-08-09 14:03:18 -0400 |
---|---|---|
committer | Paul Belanger <pabelanger@redhat.com> | 2019-08-09 15:16:14 -0400 |
commit | c841cad0ea6013aab5a0c5620d3b40d72ef5afc0 (patch) | |
tree | 71378646561c136f5a8ab5da4edfc064b23f51eb /tox.ini | |
parent | 66a01fb3cdcedff9205b2295870a7e1629bbae69 (diff) | |
download | vyos-ansible-old-c841cad0ea6013aab5a0c5620d3b40d72ef5afc0.tar.gz vyos-ansible-old-c841cad0ea6013aab5a0c5620d3b40d72ef5afc0.zip |
Add tox.ini file
Create a tox.ini file with linters entry point for developers to run
linters locally.
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +[tox] +minversion = 1.4.2 +envlist = linters +skipsdist = True + +[testenv] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +[testenv:linters] +install_command = pip install {opts} {packages} +commands = + black -v -l79 --check {toxinidir} + flake8 {posargs} + +[flake8] +# E123, E125 skipped as they are invalid PEP-8. + +show-source = True +ignore = E123,E125,E402,W503 +max-line-length = 160 +builtins = _ +exclude = .git,.tox |