Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AndrewVSutherland
GitHub Repository: AndrewVSutherland/lmfdb
Path: blob/main/tox.ini
1127 views
1
[tox]
2
envlist = tests, lint
3
skipsdist = True
4
5
[testenv:tests]
6
7
allowlist_externals =
8
sage
9
parallel
10
11
passenv =
12
SAGE_ROOT
13
SAGE_LOCAL
14
HOME
15
16
commands =
17
parallel --group 'echo "Running test on {}"; sage -python -m pytest -vv --durations=0 {}' ::: {posargs}
18
19
[testenv:lint]
20
allowlist_externals =
21
pyflakes
22
pylint
23
ruff
24
25
commands =
26
pyflakes start-lmfdb.py user-manager.py lmfdb/
27
pylint --score=no -d C,R,E,W -e W0129,W0108 start-lmfdb.py user-manager.py lmfdb/
28
# see https://pycodequ.al/docs/pylint-messages/Warnings.html
29
# E722 do not use bare except, specify exception instead (requires author input)
30
# Styling issues now handled by autopep8 workflow instead of ruff linter
31
ruff check --preview --select=E722 lmfdb/
32
33