| [base] |
| name = MARBLE |
| files = {[base]name} tests |
|
|
| [tox] |
| envlist = |
| lint |
| py{38,39,310} |
| coverage |
| docs |
|
|
| [testenv] |
| setenv = |
| COVERAGE_FILE = {env:COVERAGE_FILE:.coverage-{envname}} |
| extras = all |
| allowlist_externals = /bin/bash |
| commands = |
| /bin/bash install.sh |
| pytest -s \ |
| --basetemp={envtmpdir} \ |
| --cov={[base]name} \ |
| --cov-fail-under=10 |
|
|
|
|
| [testenv:coverage] |
| skip_install = true |
| deps = |
| coverage |
| allowlist_externals = /bin/bash |
| commands = |
| /bin/bash -c 'coverage combine .coverage-py*' |
| coverage xml |
| coverage report |
|
|
| [testenv:lint] |
| basepython = python3 |
| extras = all |
| deps = |
| pycodestyle |
| pydocstyle |
| pylint |
| isort |
| black |
|
|
| commands = |
| pycodestyle {[base]files} |
| |
| isort --check-only --sl --diff {[base]files} |
| black --check --line-length 100 {[base]files} |
| pylint {[base]files} |
|
|
| [testenv:format] |
| deps = |
| black |
| isort |
| commands = |
| isort --sl {[base]files} |
| black --line-length 100 {[base]files} |
|
|
| [testenv:docs] |
| extras = all |
| changedir = doc |
| deps = |
| sphinx |
| sphinx_click |
| sphinx_mdinclude |
| furo |
| nbsphinx |
| pandoc |
| ipython |
|
|
| allowlist_externals = make |
| commands = |
| make clean |
| make html |
|
|
| [pycodestyle] |
| ignore=W503,E731,W605,E203 |
| max-line-length=100 |
|
|
| [pydocstyle] |
| add-ignore = D102, D105, D107 |
| convention = google |
|
|
| [isort] |
| line_length=100 |
| profile=black |
|
|
| [gh-actions] |
| python = |
| 3.8: py38, lint |
| 3.9: py39 |
| 3.10: py310, coverage |
|
|