forked from LMFDB/lmfdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (27 loc) · 779 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[tox]
envlist = tests, lint
skipsdist = True
[testenv:tests]
whitelist_externals =
sage
parallel
passenv =
SAGE_ROOT
SAGE_LOCAL
HOME
commands =
parallel sage -python -m pytest -vv --durations=0 ::: {posargs}
[testenv:lint]
whitelist_externals =
pyflakes
pylint
# pycodestyle
commands =
pyflakes start-lmfdb.py user-manager.py lmfdb/
pylint --score=no -d C,R,E,W -e W0129,W0108 start-lmfdb.py user-manager.py lmfdb/
# see https://pycodequ.al/docs/pylint-messages/Warnings.html
# E722 do not use bare except, specify exception instead
# E111 indentation is not a multiple of four
# E702 multiple statements on one line (semicolon)
# W391 blank line at end of file
pycodestyle --select=E722,E711,E702 lmfdb/