forked from collective/icalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (39 loc) · 1.19 KB
/
Copy pathtox.ini
File metadata and controls
43 lines (39 loc) · 1.19 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
# to run for a specific environment, use ``tox -e ENVNAME``
[tox]
envlist = py310,py311,py312,py313,py314,pypy3,docs,nopytz
# 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
[testenv]
description = test environment
runner = uv-venv-lock-runner
dependency_groups = test
commands =
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
[testenv:nopytz]
# install with dependencies
usedevelop = False
# use lowest version
basepython = python3.10
commands =
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
[testenv:docs]
dependency_groups = docs
allowlist_externals =
make
commands =
make docs-all
[testenv:ruff]
# use tox -e ruff to format the code base
deps =
skip_install = True
dependency_groups = formatting
commands =
ruff format
ruff check --fix