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
|
[tox]
envlist = lint,py,old_deps
[testenv]
pass_env = SNAPSHOT_UPDATE
constrain_package_deps = true
package = wheel
[testenv:py]
extras = excel
deps =
pytest
pytest-cov
setuptools
-c constraints.txt
commands =
pytest --cov=fava --cov-report=term-missing:skip-covered --cov-report=html --cov-fail-under=90 {posargs:tests}
[testenv:old_deps]
extras = excel
set_env =
SNAPSHOT_IGNORE=true
deps =
pytest
setuptools
-c constraints-old.txt
commands =
pytest {posargs:tests}
[testenv:docs]
deps =
sphinx
furo
sphinx-autodoc-typehints
-c constraints.txt
commands =
python docs/generate.py
sphinx-build -b html docs build/docs
[testenv:lint]
deps =
mypy
pytest
setuptools
types-setuptools
types-simplejson
-c constraints.txt
commands =
mypy src/fava tests _build_backend.py
[testenv:pyinstaller]
deps =
pyinstaller
-c constraints.txt
allowlist_externals = {toxinidir}/dist/fava
commands =
pyinstaller --clean --noconfirm contrib/pyinstaller_spec.spec
{toxinidir}/dist/fava --version
[coverage:run]
branch = True
source = fava
omit =
*/fava/beans/types.py
*/fava/ext/auto_commit.py
*/fava/ext/portfolio_list/__init__.py
[coverage:paths]
source = src
paths =
src/fava
.tox/*/fava
[flake8]
ignore =
# whitespace before ':' (black)
E203
# disabled for stubs
E302
# disabled for stubs
E305
# disabled for stubs
E701
# disabled for stubs
E704
# line break before binary operator (black)
W503
|