]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/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:

Merge commit '882d8795c6ff65c02f2657e596391748d1b6b7f5'
[etc/vim.git] / .vim / bundle / black / tox.ini
1 [tox]
2 isolated_build = true
3 envlist = {,ci-}py{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     pytest tests \
43         --run-optional no_jupyter \
44         !ci: --numprocesses auto \
45         ci: --numprocesses 1
46     pip install -e .[jupyter]
47     pytest tests --run-optional jupyter \
48         -m jupyter \
49         !ci: --numprocesses auto \
50         ci: --numprocesses 1
51
52 [testenv:{,ci-}311]
53 setenv =
54   PYTHONPATH = {toxinidir}/src
55   AIOHTTP_NO_EXTENSIONS = 1
56 skip_install = True
57 recreate = True
58 deps =
59 ; We currently need > aiohttp 3.8.1 that is on PyPI for 3.11
60     git+https://github.com/aio-libs/aiohttp
61     -r{toxinidir}/test_requirements.txt
62 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
63 ; this seems to cause tox to wait forever
64 ; remove this when pypy releases the bugfix
65 commands =
66     pip install -e .[d]
67     coverage erase
68     pytest tests \
69         --run-optional no_jupyter \
70         !ci: --numprocesses auto \
71         ci: --numprocesses 1 \
72         --cov {posargs}
73     pip install -e .[jupyter]
74     pytest tests --run-optional jupyter \
75         -m jupyter \
76         !ci: --numprocesses auto \
77         ci: --numprocesses 1 \
78         --cov --cov-append {posargs}
79     coverage report
80
81 [testenv:fuzz]
82 skip_install = True
83 deps =
84     -r{toxinidir}/test_requirements.txt
85     hypothesmith
86     lark-parser
87 commands =
88     pip install -e .[d]
89     coverage erase
90     coverage run {toxinidir}/scripts/fuzz.py
91     coverage report
92
93 [testenv:run_self]
94 setenv = PYTHONPATH = {toxinidir}/src
95 skip_install = True
96 commands =
97     pip install -e .[d]
98     black --check {toxinidir}/src {toxinidir}/tests