forked from gitpython-developers/GitPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (28 loc) · 792 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
[tox]
requires = tox>=4
env_list = py{37,38,39,310,311,312}, lint, mypy, html
[testenv]
description = Run unit tests
package = wheel
extras = test
pass_env = SSH_*
commands = pytest --color=yes {posargs}
[testenv:lint]
description = Lint via pre-commit
base_python = py{39,310,311,312,38,37}
set_env =
SKIP = black-format
commands = pre-commit run --all-files --hook-stage manual
[testenv:mypy]
description = Typecheck with mypy
base_python = py{39,310,311,312,38,37}
commands = mypy -p git
ignore_outcome = true
[testenv:html]
description = Build HTML documentation
base_python = py{39,310,311,312,38,37}
deps = -r doc/requirements.txt
allowlist_externals = make
commands =
make BUILDDIR={env_tmp_dir}/doc/build -C doc clean
make BUILDDIR={env_tmp_dir}/doc/build -C doc html