ace01ee1 |
[tox]
isolated_build = True
|
c5e74fd6 |
envlist = clean,py{38,39},report
|
ace01ee1 |
[gh-actions]
python =
|
c5e74fd6 |
3.8: clean,py38,report
3.9: clean,py39,report
|
ace01ee1 |
[pytest]
|
4c0eec14 |
addopts =
|
160c325a |
--durations=5
|
1eaf7b28 |
--cov --cov-append --cov-fail-under=100 --cov-report=
|
4c0eec14 |
--black
--mypy
--flake8
norecursedirs =
docs
|
ace01ee1 |
[coverage:paths]
source =
|
1d6de090 |
src
.tox/py*/lib/python*/site-packages
|
ace01ee1 |
[coverage:run]
branch = true
parallel = true
|
1d6de090 |
source = qsim
|
ace01ee1 |
[coverage:report]
show_missing = true
precision = 2
[coverage:xml]
output = .coverage.xml
[testenv]
deps = .[test]
commands = pytest
depends =
|
c5e74fd6 |
{py38,py39}: clean
report: {py38,py39}
|
ace01ee1 |
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage xml
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
|
2654b75f |
[testenv:docs]
changedir=docs
deps = .[docs]
commands = sphinx-build . _build
|
ace01ee1 |
[flake8]
max-line-length = 100
ignore =
E203,
E266,
E501,
W503,
per-file-ignores =
|
4c0eec14 |
__init__.py: F401
|
31c19748 |
max-complexity = 18
|
ace01ee1 |
select = B, C, E, F, W, T4, B9
exclude =
.git,
.tox,
__pycache__,
dist,
|