-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathtox.ini
More file actions
133 lines (122 loc) · 4.51 KB
/
tox.ini
File metadata and controls
133 lines (122 loc) · 4.51 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[tox]
skipsdist = True
minversion = 3.10.0
envlist =
py{310,311,312,313,314}
ruff,
mypy,
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
commands =
coverage run -m unittest discover -v ./tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-workflow/tests
coverage run -a -m pytest -m "not e2e" ./ext/dapr-ext-workflow/tests/durabletask/
coverage run -a -m unittest discover -v ./ext/dapr-ext-grpc/tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-fastapi/tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-langgraph/tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-strands/tests
coverage run -a -m unittest discover -v ./ext/flask_dapr/tests
coverage xml
commands_pre =
pip uninstall -y dapr dapr-ext-grpc dapr-ext-fastapi dapr-ext-langgraph dapr-ext-strands dapr-ext-flask dapr-ext-langgraph dapr-ext-strands
pip install -r dev-requirements.txt \
-e {toxinidir}/ \
-e {toxinidir}/ext/dapr-ext-workflow/ \
-e {toxinidir}/ext/dapr-ext-grpc/ \
-e {toxinidir}/ext/dapr-ext-fastapi/ \
-e {toxinidir}/ext/dapr-ext-langgraph/ \
-e {toxinidir}/ext/dapr-ext-strands/ \
-e {toxinidir}/ext/flask_dapr/
[testenv:ruff]
basepython = python3
usedevelop = False
commands =
ruff check --fix
ruff format
[testenv:examples]
passenv = HOME
basepython = python3
changedir = ./examples/
deps =
mechanical-markdown
commands =
./validate.sh conversation
./validate.sh crypto
./validate.sh metadata
./validate.sh error_handling
./validate.sh pubsub-simple
./validate.sh pubsub-streaming
./validate.sh pubsub-streaming-async
./validate.sh state_store
./validate.sh state_store_query
./validate.sh secret_store
./validate.sh invoke-simple
./validate.sh invoke-custom-data
./validate.sh demo_actor
./validate.sh invoke-binding
./validate.sh grpc_proxying
./validate.sh w3c-tracing
./validate.sh distributed_lock
./validate.sh configuration
./validate.sh workflow
./validate.sh jobs
./validate.sh langgraph-checkpointer
./validate.sh ../
allowlist_externals=*
commands_pre =
pip uninstall -y dapr dapr-ext-grpc dapr-ext-fastapi dapr-ext-langgraph dapr-ext-strands dapr-ext-flask dapr-ext-langgraph dapr-ext-strands
pip install -e {toxinidir}/ \
-e {toxinidir}/ext/dapr-ext-workflow/ \
-e {toxinidir}/ext/dapr-ext-grpc/ \
-e {toxinidir}/ext/dapr-ext-fastapi/ \
-e {toxinidir}/ext/dapr-ext-langgraph/ \
-e {toxinidir}/ext/dapr-ext-strands/ \
-e {toxinidir}/ext/flask_dapr/
[testenv:example-component]
; This environment is used to validate a specific example component.
; Usage: tox -e example-component -- component_name
; Example: tox -e example-component -- conversation
passenv = HOME
basepython = python3
changedir = ./examples/
deps =
mechanical-markdown
commands =
./validate.sh {posargs}
allowlist_externals=*
commands_pre =
pip uninstall -y dapr dapr-ext-grpc dapr-ext-fastapi dapr-ext-langgraph dapr-ext-strands dapr-ext-flask dapr-ext-langgraph dapr-ext-strands
pip install -e {toxinidir}/ \
-e {toxinidir}/ext/dapr-ext-workflow/ \
-e {toxinidir}/ext/dapr-ext-grpc/ \
-e {toxinidir}/ext/dapr-ext-fastapi/ \
-e {toxinidir}/ext/dapr-ext-langgraph/ \
-e {toxinidir}/ext/dapr-ext-strands/ \
-e {toxinidir}/ext/flask_dapr/
[testenv:type]
basepython = python3
usedevelop = False
commands =
mypy --config-file mypy.ini
commands_pre =
pip uninstall -y dapr dapr-ext-grpc dapr-ext-fastapi dapr-ext-langgraph dapr-ext-strands dapr-ext-flask dapr-ext-langgraph dapr-ext-strands
pip install -r dev-requirements.txt \
-e {toxinidir}/ \
-e {toxinidir}/ext/dapr-ext-workflow/ \
-e {toxinidir}/ext/dapr-ext-grpc/ \
-e {toxinidir}/ext/dapr-ext-fastapi/ \
-e {toxinidir}/ext/dapr-ext-langgraph/ \
-e {toxinidir}/ext/dapr-ext-strands/ \
-e {toxinidir}/ext/flask_dapr/
[testenv:doc]
basepython = python3
usedevelop = False
allowlist_externals = make
deps = sphinx
commands =
sphinx-apidoc -E -o docs/actor dapr/actor
sphinx-apidoc -E -o docs/clients dapr/clients
sphinx-apidoc -E -o docs/proto dapr/proto
sphinx-apidoc -E -o docs/serializers dapr/serializers
make html -C docs