]> 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:

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