forked from dapr/durabletask-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
34 lines (32 loc) · 889 Bytes
/
tox.ini
File metadata and controls
34 lines (32 loc) · 889 Bytes
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
[tox]
skipsdist = True
minversion = 3.10.0
envlist =
py{310,311,312,313,314}
ruff,
mypy,
# TODO: switch runner to uv (tox-uv plugin)
runner = virtualenv
[testenv]
# you can run tox with the e2e pytest marker using tox factors:
# tox -e py310,py311,py312,py313,py314 -- e2e
# or single one with:
# tox -e py310-e2e
# to use custom grpc endpoint and not capture print statements (-s arg in pytest):
# DAPR_GRPC_ENDPOINT=localhost:12345 tox -e py310-e2e -- -s
setenv =
PYTHONDONTWRITEBYTECODE=1
deps = .[dev]
commands =
!e2e: pytest -m "not e2e" --verbose
e2e: pytest -m e2e --verbose
commands_pre =
pip3 install -e {toxinidir}/
allowlist_externals = pip3
pass_env = DAPR_GRPC_ENDPOINT,DAPR_HTTP_ENDPOINT,DAPR_RUNTIME_HOST,DAPR_GRPC_PORT,DAPR_HTTP_PORT
[testenv:ruff]
basepython = python3
usedevelop = False
commands =
ruff check --fix
ruff format