-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
80 lines (69 loc) · 1.95 KB
/
tox.ini
File metadata and controls
80 lines (69 loc) · 1.95 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
# These are the default environments that will be run
# when ``tox`` is run without arguments.
envlist =
fmt
lint
py{311}
skip_missing_interpreters = true
requires = tox-uv
[ruff]
# Use the more relaxed max line length permitted in PEP8.
max-line-length = 99
# This ignore is required by black.
extend-ignore = E203
extend-exclude =
venv
# This is the configuration for the tox-gh-actions plugin for GitHub Actions
# https://github.com/ymyzk/tox-gh-actions
# This section is not needed if not using GitHub Actions for CI.
[gh-actions]
python =
3.11: py331, fmt, lint
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree. For build tools and
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
isolated_build = true
[testenv]
# Install the package itself, which will pull dependencies from pyproject.toml
deps =
pytest
{toxinidir}/.
commands =
# Use -bb to enable BytesWarnings as error to catch str/bytes misuse.
# Use -Werror to treat warnings as errors.
uv run pytest tests {posargs}
[testenv:lint]
skip_install = true
deps =
ruff
commands =
ruff check aprsd_email_plugin tests
[testenv:docs]
skip_install = true
deps =
-r docs/requirements.txt
{toxinidir}/.
changedir = {toxinidir}/docs
commands =
{envpython} clean_docs.py
m2r2 --overwrite {toxinidir}/README.md
{envpython} -c "import shutil, os; os.chdir('{toxinidir}'); shutil.move('README.rst', 'docs/source/readme.rst')"
{envpython} fix_readme_rst.py
sphinx-apidoc --force --output-dir source/apidoc {toxinidir}/aprsd_email_plugin
#sphinx-build -a -W . _build
sphinx-build -M html source build
[testenv:fmt]
skip_install = true
deps =
ruff
commands =
ruff format aprsd_email_plugin tests
[testenv:licenses]
skip_install = true
recreate = true
deps =
pip-licenses
{toxinidir}/.
commands =
pip-licenses {posargs}