Debian Codegraph @

tox.ini

raw
1 [tox]
2 requires =
3 tox>=4.2
4 env_list =
5 fix
6 py312
7 py311
8 py310
9 py39
10 pypy3
11 docs
12 pkg_desc
13 skip_missing_interpreters = true
14
15 [testenv]
16 package = wheel
17 wheel_build_env = .pkg
18 extras =
19 test
20 commands =
21 pytest {tty:--color=yes} tests
22 pytest --nbval examples
23
24 [testenv:fix]
25 description = format the code base to adhere to our styles, and complain about what we cannot do automatically
26 skip_install = true
27 deps =
28 pre-commit>=3.5
29 pass_env =
30 PROGRAMDATA
31 commands =
32 pre-commit run --all-files --show-diff-on-failure
33
34 [testenv:pkg_desc]
35 description = check that the long description is valid
36 skip_install = true
37 deps =
38 build[virtualenv]>=1.0.3
39 twine>=4.0.2
40 commands =
41 python -m build --sdist --wheel . -o {envtmpdir}
42 twine check {envtmpdir}/*
43
44 [testenv:dev]
45 description = dev environment with all deps at {envdir}
46 package = editable
47 extras =
48 dev
49 test
50 commands =
51 python -m pip list --format=columns
52 python -c "print(r'{envpython}')"
53
54 [flake8]
55 max-complexity = 22
56 max-line-length = 80
57 extend-ignore = E203, W503, U101
58 noqa-require-code = true
59
60 [pep8]
61 max-line-length = 80