TEMP build123d framework stuff part 2
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
0dcd1cb5ff
commit
d4217405e1
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ venv/
|
||||
|
||||
*.pyc
|
||||
*.sw*
|
||||
.coverage
|
||||
|
58
tox.ini
Normal file
58
tox.ini
Normal file
@ -0,0 +1,58 @@
|
||||
# tox (https://tox.readthedocs.io/) is a tool for running tests
|
||||
# in multiple virtualenvs. This configuration file will run the
|
||||
# test suite on all supported python versions. To use it, "pip install tox"
|
||||
# and then run "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
isolated_build = true
|
||||
envlist = begin,py311,coverage,bandit,lint,reuse
|
||||
|
||||
[testenv]
|
||||
allow_externals = pytest, coverage
|
||||
|
||||
deps =
|
||||
-rrequirements/requirements-dev.txt
|
||||
|
||||
[testenv:begin]
|
||||
# clean up potential previous coverage runs
|
||||
skip_install = true
|
||||
commands = coverage erase
|
||||
|
||||
[testenv:py311]
|
||||
# run pytest with coverage
|
||||
commands =
|
||||
pytest --cov-append --cov={envsitepackagesdir}/bss/ --cov-branch
|
||||
|
||||
[testenv:coverage]
|
||||
# report on coverage runs from above
|
||||
skip_install = true
|
||||
commands =
|
||||
coverage report --fail-under=90 --show-missing
|
||||
|
||||
[testenv:bandit]
|
||||
commands =
|
||||
bandit ./src/bss/ -r
|
||||
|
||||
[testenv:lint]
|
||||
# run style checks
|
||||
commands =
|
||||
flake8
|
||||
mypy src/bss
|
||||
- flake8 --disable-noqa --ignore= --select=E,W,F,C,D,A,G,B,I,T,M,DUO
|
||||
|
||||
[testenv:reuse]
|
||||
# check license documentation
|
||||
commands =
|
||||
reuse lint
|
||||
|
||||
[coverage:paths]
|
||||
source =
|
||||
./
|
||||
.tox/**/site-packages/
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
||||
|
||||
omit =
|
||||
**/_version.py
|
||||
**/proto_snapshot/*
|
Loading…
Reference in New Issue
Block a user