-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
63 lines (57 loc) · 970 Bytes
/
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
[tox]
isolated_build = True
envlist =
python3.7,
python3.8,
python3.9,
python3.10,
coverage,
[testenv]
deps =
numpy
pytest
pytest-order
pytest-timeout
pytest-dependency
commands =
pytest .
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39, coverage
3.10: py310
[testenv:coverage]
deps =
numpy
pytest
pytest-cov
pytest-order
pytest-timeout
pytest-dependency
coverage
commands =
coverage erase
pytest --cov={envsitepackagesdir}/shapepy --cov-report=xml tests
coverage report -m --fail-under 20
coverage xml
[testenv:format]
deps =
numpy
black
flake8
isort
mccabe
pylint
commands =
black --check src/shapepy
isort --check src/shapepy
flake8 src/shapepy --max-complexity 10
pylint src/shapepy
[testenv:linting]
deps =
pre-commit
commands =
pre-commit run --all-files
[flake8]
per-file-ignores = __init__.py:F401