1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
[tox]
minversion=2.3.1
envlist = py38,py39,py310,py311,py312,py313,black
isolated_build = True
[testenv]
deps =
black == 24.4.2
pytest
commands =
pytest tests/
[testenv:black]
commands =
black --check .
[testenv:pyanalyze]
deps =
pyanalyze == 0.12.0
commands =
# Need recent pip for PEP 660-based editable installs.
pip install --upgrade pip
# Need an editable install so pyanalyze imports the right version
# of ast_decompiler.
pip install -e .
pyanalyze --config-file=pyproject.toml ast_decompiler/ tests/
[testenv:fuzz]
skip_install = True
deps =
# Skip in CI, it runs forever.
# atheris
coverage
hypothesmith
commands =
pip install -e .[d]
coverage erase
coverage run fuzz.py
coverage report
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, black, pyanalyze
3.13-dev: py313
|