2014-07-14 11:52:24 +00:00
|
|
|
# to run for a specific environment, use ``tox -e ENVNAME``
|
2011-08-17 19:23:20 +00:00
|
|
|
[tox]
|
2024-10-13 17:24:02 +00:00
|
|
|
envlist = py38,py39,py310,py311,py312,py313,pypy3,docs,nopytz
|
2022-08-13 12:41:37 +00:00
|
|
|
# Note: the 'docs' env creates a 'build' directory which may interfere in strange ways
|
|
|
|
# with the other environments. You might see this when you run the tests in parallel.
|
|
|
|
# See https://github.com/collective/icalendar/pull/359#issuecomment-1214150269
|
2011-08-17 19:23:20 +00:00
|
|
|
|
2013-12-24 12:26:13 +00:00
|
|
|
[testenv]
|
2022-08-07 21:57:35 +00:00
|
|
|
usedevelop=True
|
2013-10-29 17:43:46 +00:00
|
|
|
deps =
|
2024-09-04 14:51:34 +00:00
|
|
|
-e .[test]
|
2013-12-24 12:06:03 +00:00
|
|
|
commands =
|
2024-07-25 22:37:32 +00:00
|
|
|
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
|
2014-05-29 16:56:10 +00:00
|
|
|
coverage report
|
|
|
|
coverage html
|
2024-07-01 21:52:48 +00:00
|
|
|
coverage xml
|
2022-06-24 11:34:45 +00:00
|
|
|
|
2024-06-24 17:16:49 +00:00
|
|
|
[testenv:nopytz]
|
|
|
|
# install with dependencies
|
|
|
|
usedevelop = False
|
|
|
|
# use lowest version
|
|
|
|
basepython = python3.8
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
coverage
|
|
|
|
hypothesis
|
|
|
|
commands =
|
2024-07-25 22:37:32 +00:00
|
|
|
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
|
2024-06-24 17:16:49 +00:00
|
|
|
coverage report
|
|
|
|
coverage html
|
2024-07-01 21:52:48 +00:00
|
|
|
coverage xml
|
2024-06-24 17:16:49 +00:00
|
|
|
|
2022-06-24 11:34:45 +00:00
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
|
|
|
-r {toxinidir}/requirements_docs.txt
|
2024-06-04 11:30:06 +00:00
|
|
|
setuptools
|
2022-06-24 12:22:42 +00:00
|
|
|
changedir = docs
|
2022-08-13 09:12:58 +00:00
|
|
|
allowlist_externals = make
|
2022-06-24 11:34:45 +00:00
|
|
|
commands =
|
|
|
|
make html
|
2024-09-04 14:51:34 +00:00
|
|
|
|
|
|
|
[testenv:ruff]
|
|
|
|
# use tox -e ruff to format the code base
|
|
|
|
deps = ruff
|
|
|
|
skip_install = True
|
|
|
|
commands =
|
|
|
|
ruff format
|
|
|
|
ruff check --fix
|