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

Document jupyter hook (#2416)
[etc/vim.git] / tox.ini
1 [tox]
2 envlist = {,ci-}py{36,37,38,39,310},fuzz
3
4 [testenv]
5 setenv = PYTHONPATH = {toxinidir}/src
6 skip_install = True
7 # We use `recreate=True` because otherwise, on the second run of `tox -e py`,
8 # the `no_python2` tests would run with the Python2 extra dependencies installed.
9 # See https://github.com/psf/black/issues/2367.
10 recreate = True
11 deps =
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
15 commands =
16     pip install -e .[d]
17     coverage erase
18     pytest tests --run-optional no_python2 \
19         --run-optional no_jupyter \
20         !ci: --numprocesses auto \
21         --cov {posargs}
22     pip install -e .[d,python2]
23     pytest tests --run-optional python2 \
24         --run-optional no_jupyter \
25         !ci: --numprocesses auto \
26         --cov --cov-append {posargs}
27     pip install -e .[jupyter]
28     pytest tests --run-optional jupyter \
29         -m jupyter \
30         !ci: --numprocesses auto \
31         --cov --cov-append {posargs}
32     coverage report
33
34 [testenv:fuzz]
35 skip_install = True
36 deps =
37     -r{toxinidir}/test_requirements.txt
38     hypothesmith
39     lark-parser < 0.10.0
40 ; lark-parser's version is set due to a bug in hypothesis. Once it solved, that would be fixed.
41 commands =
42     pip install -e .[d]
43     coverage erase
44     coverage run fuzz.py
45     coverage report