-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
91 lines (80 loc) · 1.79 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
[tox]
envlist = isort
skip_missing_interpreters = true
[testenv:isort]
basepython = python3.10
deps =
isort==5.12.0
commands =
isort ph7/ scripts/ tests/
isort examples/
[testenv:isort-check]
basepython = python3.10
deps =
isort==5.12.0
commands =
isort ph7/ scripts/ tests/ --check
isort examples/ --check
[testenv:black]
basepython = python3.10
deps =
black==23.3.0
commands =
black ph7/ scripts/ tests/
black examples/
[testenv:black-check]
basepython = python3.10
deps =
black==23.3.0
commands =
black ph7/ scripts/ tests/ --check
black examples/ --check
[testenv:mypy]
basepython = python3.10
deps =
mypy==1.3.0
commands =
mypy ph7/ scripts/ tests/ --config-file linters.ini
mypy examples/ --config-file linters.examples.ini
[testenv:pylint]
basepython = python3.10
deps =
pylint==2.17.4
commands =
pylint ph7/ tests/ scripts/
pylint examples/ --rcfile .pylintrc.examples
[testenv:flake8]
basepython = python3.10
deps =
flake8==6.0.0
commands =
flake8 ph7/ scripts/ tests/ --config linters.ini
flake8 examples/ --config linters.examples.ini
[testenv:docs-build]
basepython = python3.10
deps =
mkdocs==1.5.3
commands =
python -m mkdocs build
[testenv:docs-deploy]
basepython = python3.10
deps =
mkdocs==1.5.3
commands =
python -m mkdocs gh-deploy
[testenv:docs-serve]
basepython = python3.10
deps =
mkdocs==1.5.3
commands =
python -m mkdocs serve
[testenv:unittests]
setenv =
PYTHONPATH={env:PWD:%CD%}
deps =
pytest==7.4.2
codecov==2.1.13
pytest-codecov==0.5.1
typing_extensions==4.10.0
commands =
pytest -v -rfE --doctest-modules ph7 tests/ --cov=ph7 --cov=examples --cov-report=html --cov-report=xml --cov-report=term --cov-report=term-missing --cov-config=.coveragerc {posargs}