-
Notifications
You must be signed in to change notification settings - Fork 51
/
tox.ini
61 lines (55 loc) · 1.11 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
[tox]
requires =
tox>=4.2
env_list =
fix
py312
py311
py310
py39
pypy3
docs
pkg_desc
skip_missing_interpreters = true
[testenv]
package = wheel
wheel_build_env = .pkg
extras =
test
commands =
pytest {tty:--color=yes} tests
pytest --nbval examples
[testenv:fix]
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.5
pass_env =
PROGRAMDATA
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:pkg_desc]
description = check that the long description is valid
skip_install = true
deps =
build[virtualenv]>=1.0.3
twine>=4.0.2
commands =
python -m build --sdist --wheel . -o {envtmpdir}
twine check {envtmpdir}/*
[testenv:dev]
description = dev environment with all deps at {envdir}
package = editable
extras =
dev
test
commands =
python -m pip list --format=columns
python -c "print(r'{envpython}')"
[flake8]
max-complexity = 22
max-line-length = 80
extend-ignore = E203, W503
noqa-require-code = true
[pep8]
max-line-length = 80