forked from beancount/fava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
91 lines (81 loc) · 1.6 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
envlist = lint,py,old_deps
isolated_build = True
[testenv]
passenv = SNAPSHOT_UPDATE
extras = excel
deps =
pytest
pytest-cov
commands =
pytest --cov=fava --cov-report=html --cov-fail-under=90 {posargs:tests}
[testenv:py]
extras = excel
[testenv:old_deps]
deps =
pytest
Babel==2.7.0
Flask-Babel==1.0.0
Flask==2.0.0
Jinja2==3.0.0
Werkzeug==2.0.0
beancount==2.3.0
cheroot==8.0.0
click==7.1.2
markdown2==2.3.0
simplejson==3.16.0
commands =
pytest {posargs:tests}
[coverage:run]
branch = True
source = fava
omit =
*/fava/ext/auto_commit.py
[coverage:paths]
source = src
paths =
src/fava
.tox/*/fava
[testenv:docs]
deps = sphinx
commands =
python docs/generate.py
sphinx-build -b html docs build/docs
[testenv:lint]
deps =
flake8
mypy>=0.920
pylint>=2.4.1
pytest
types-pkg_resources
types-simplejson
commands =
flake8 --filename '*.pyi' stubs
mypy src/fava tests
pylint {posargs:src/fava tests contrib}
[flake8]
exclude = node_modules
ignore =
E203 # whitespace before ':' (black)
E302 # disabled for stubs
E305 # disabled for stubs
E701 # disabled for stubs
E704 # disabled for stubs
W503 # line break before binary operator (black)
[testenv:build-dist]
skip_install = True
deps =
babel
build
twine
commands =
pybabel compile -d src/fava/translations
python -m build
twine check dist/*
[testenv:pyinstaller]
deps =
pyinstaller
pytest>=6,<7
commands =
pyinstaller --clean --noconfirm contrib/pyinstaller_spec.spec
{toxinidir}/dist/fava --version