All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 envlist = {,ci-}py{36,37,38,39,310,311,py3},fuzz,run_self
5 setenv = PYTHONPATH = {toxinidir}/src
7 # We use `recreate=True` because otherwise, on the second run of `tox -e py`,
8 # the `no_jupyter` tests would run with the jupyter extra dependencies installed.
9 # See https://github.com/psf/black/issues/2367.
12 -r{toxinidir}/test_requirements.txt
13 ; parallelization is disabled on CI because pytest-dev/pytest-xdist#620 occurs too frequently
14 ; local runs can stay parallelized since they aren't rolling the dice so many times as like on CI
18 pytest tests --run-optional no_jupyter \
19 !ci: --numprocesses auto \
21 pip install -e .[jupyter]
22 pytest tests --run-optional jupyter \
24 !ci: --numprocesses auto \
25 --cov --cov-append {posargs}
29 setenv = PYTHONPATH = {toxinidir}/src
33 -r{toxinidir}/test_requirements.txt
34 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
35 ; this seems to cause tox to wait forever
36 ; remove this when pypy releases the bugfix
41 --run-optional no_jupyter \
42 !ci: --numprocesses auto \
43 ci: --numprocesses 1 \
45 pip install -e .[jupyter]
46 pytest tests --run-optional jupyter \
48 !ci: --numprocesses auto \
49 ci: --numprocesses 1 \
50 --cov --cov-append {posargs}
54 setenv = PYTHONPATH = {toxinidir}/src
58 -r{toxinidir}/test_requirements.txt
59 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
60 ; this seems to cause tox to wait forever
61 ; remove this when pypy releases the bugfix
66 --run-optional no_jupyter \
67 !ci: --numprocesses auto \
68 ci: --numprocesses 1 \
70 pip install -e .[jupyter]
71 pytest tests --run-optional jupyter \
73 !ci: --numprocesses auto \
74 ci: --numprocesses 1 \
75 --cov --cov-append {posargs}
81 -r{toxinidir}/test_requirements.txt
87 coverage run {toxinidir}/scripts/fuzz.py
91 setenv = PYTHONPATH = {toxinidir}/src
95 black --check {toxinidir}/src {toxinidir}/tests {toxinidir}/setup.py