Commit f8580fcd authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

tox: Move 'flake8' and 'pylint' options to configuration files

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent f9d30db0
......@@ -7,4 +7,6 @@ disable=
R0902,
R0912,
R0913,
R0914
R0914,
R0205,
W1509
......@@ -36,6 +36,10 @@ include_package_data = True
console_scripts =
satnogs-client = satnogsclient:main
[flake8]
max-line-length = 180
exclude = satnogsclient/_version.py,versioneer.py
# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
......
[tox]
envlist = {py2,py3}-{flake8,yapf,pylint,build},robot_lint,py2,py3
[flake8]
max-line-length = 180
[testenv:py2-flake8]
deps =
flake8==3.7.7
skip_install = True
commands = flake8 \
--exclude 'satnogsclient/_version.py' \
setup.py \
satnogsclient
......@@ -18,7 +14,6 @@ deps =
flake8==3.7.7
skip_install = True
commands = flake8 \
--exclude 'satnogsclient/_version.py' \
setup.py \
satnogsclient
......@@ -41,18 +36,13 @@ commands = yapf -d -r \
[testenv:py2-pylint]
deps =
pylint==1.9.4
commands = pylint -d \
--ignore=_version.py \
commands = pylint \
{envsitepackagesdir}/satnogsclient
[testenv:py3-pylint]
deps =
pylint==2.3.1
commands = pylint -d "\
R0205,\
W1509,\
" \
--ignore=_version.py \
commands = pylint \
{envsitepackagesdir}/satnogsclient
[testenv:py2-build]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment