forked from barahona-research-group/PyGenStability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
95 lines (82 loc) · 1.5 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
92
93
94
95
[base]
name = pygenstability
files = src/{[base]name}
[tox]
envlist =
lint
py{38,39,310}
coverage
docs
[testenv]
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:.coverage-{envname}}
deps = pybind11
extras = all
commands = pytest -s \
--basetemp={envtmpdir} \
--cov={[base]name} \
--no-cov-on-fail \
--cov-report term-missing \
--cov-fail-under=100
allowlist_externals = make
[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 =
pybind11
pycodestyle
pydocstyle
pylint
isort
black
commands =
pycodestyle {[base]files}
pydocstyle {[base]files}
isort --check-only --sl --diff {[base]files}
black --check --line-length 100 {[base]files}
pylint {[base]files}
[testenv:format]
deps =
pybind11
black
isort
commands =
isort --sl {[base]files}
black --line-length 100 {[base]files}
[testenv:docs]
extras = all
changedir = docs
deps =
pybind11
sphinx
sphinx_click
sphinx_mdinclude
furo
nbsphinx
pandoc
ipython
whitelist_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.9: py39, lint
3.10: py310, coverage, docs