]> git.madduck.net Git - etc/vim.git/blob - tox.ini

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Switch build backend to Hatchling (#3233)
[etc/vim.git] / tox.ini
1 [tox]
2 isolated_build = true
3 envlist = {,ci-}py{37,38,39,310,311,py3},fuzz,run_self
4
5 [testenv]
6 setenv = PYTHONPATH = {toxinidir}/src
7 skip_install = True
8 # We use `recreate=True` because otherwise, on the second run of `tox -e py`,
9 # the `no_jupyter` tests would run with the jupyter extra dependencies installed.
10 # See https://github.com/psf/black/issues/2367.
11 recreate = True
12 deps =
13     -r{toxinidir}/test_requirements.txt
14 ; parallelization is disabled on CI because pytest-dev/pytest-xdist#620 occurs too frequently
15 ; local runs can stay parallelized since they aren't rolling the dice so many times as like on CI
16 commands =
17     pip install -e .[d]
18     coverage erase
19     pytest tests --run-optional no_jupyter \
20         !ci: --numprocesses auto \
21         --cov {posargs}
22     pip install -e .[jupyter]
23     pytest tests --run-optional jupyter \
24         -m jupyter \
25         !ci: --numprocesses auto \
26         --cov --cov-append {posargs}
27     coverage report
28
29 [testenv:{,ci-}pypy3]
30 setenv = PYTHONPATH = {toxinidir}/src
31 skip_install = True
32 recreate = True
33 deps =
34     -r{toxinidir}/test_requirements.txt
35 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
36 ; this seems to cause tox to wait forever
37 ; remove this when pypy releases the bugfix
38 commands =
39     pip install -e .[d]
40     coverage erase
41     pytest tests \
42         --run-optional no_jupyter \
43         !ci: --numprocesses auto \
44         ci: --numprocesses 1 \
45         --cov {posargs}
46     pip install -e .[jupyter]
47     pytest tests --run-optional jupyter \
48         -m jupyter \
49         !ci: --numprocesses auto \
50         ci: --numprocesses 1 \
51         --cov --cov-append {posargs}
52     coverage report
53
54 [testenv:{,ci-}311]
55 setenv =
56   PYTHONPATH = {toxinidir}/src
57   AIOHTTP_NO_EXTENSIONS = 1
58 skip_install = True
59 recreate = True
60 deps =
61 ; We currently need > aiohttp 3.8.1 that is on PyPI for 3.11
62     git+https://github.com/aio-libs/aiohttp
63     -r{toxinidir}/test_requirements.txt
64 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
65 ; this seems to cause tox to wait forever
66 ; remove this when pypy releases the bugfix
67 commands =
68     pip install -e .[d]
69     coverage erase
70     pytest tests \
71         --run-optional no_jupyter \
72         !ci: --numprocesses auto \
73         ci: --numprocesses 1 \
74         --cov {posargs}
75     pip install -e .[jupyter]
76     pytest tests --run-optional jupyter \
77         -m jupyter \
78         !ci: --numprocesses auto \
79         ci: --numprocesses 1 \
80         --cov --cov-append {posargs}
81     coverage report
82
83 [testenv:fuzz]
84 skip_install = True
85 deps =
86     -r{toxinidir}/test_requirements.txt
87     hypothesmith
88     lark-parser
89 commands =
90     pip install -e .[d]
91     coverage erase
92     coverage run {toxinidir}/scripts/fuzz.py
93     coverage report
94
95 [testenv:run_self]
96 setenv = PYTHONPATH = {toxinidir}/src
97 skip_install = True
98 commands =
99     pip install -e .[d]
100     black --check {toxinidir}/src {toxinidir}/tests