File tree Expand file tree Collapse file tree 4 files changed +555
-318
lines changed Expand file tree Collapse file tree 4 files changed +555
-318
lines changed Original file line number Diff line number Diff line change 49
49
version : 0.7.2
50
50
51
51
- name : Install the project
52
- run : uv sync --frozen -- all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
52
+ run : uv sync --all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
53
53
54
54
- name : Run pytest
55
55
run : uv run --frozen --no-sync pytest
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ dev = [
59
59
" pytest-pretty>=1.2.0" ,
60
60
" inline-snapshot>=0.23.0" ,
61
61
" dirty-equals>=0.9.0" ,
62
+ " coverage[toml]>7.10.3" ,
62
63
]
63
64
docs = [
64
65
" mkdocs>=1.6.1" ,
@@ -124,11 +125,6 @@ mcp = { workspace = true }
124
125
[tool .pytest .ini_options ]
125
126
log_cli = true
126
127
xfail_strict = true
127
- addopts = """
128
- --color=yes
129
- --capture=fd
130
- --numprocesses auto
131
- """
132
128
filterwarnings = [
133
129
" error" ,
134
130
# This should be fixed on Uvicorn's side.
@@ -148,3 +144,24 @@ MD029=false # ol-prefix - Ordered list item prefix
148
144
MD033 =false # no-inline-html Inline HTML
149
145
MD041 =false # first-line-heading/first-line-h1
150
146
MD059 =false # descriptive-link-text
147
+
148
+ # https://coverage.readthedocs.io/en/latest/config.html#run
149
+ [tool .coverage .run ]
150
+ brach = true
151
+ patch = [" subprocess" ]
152
+ concurrency = [" multiprocessing" , " thread" ]
153
+ source = [" src" , " tests" ]
154
+
155
+ # https://coverage.readthedocs.io/en/latest/config.html#report
156
+ [tool .coverage .report ]
157
+ fail_under = 100
158
+ skip_covered = true
159
+ show_missing = true
160
+ ignore_errors = true
161
+ precision = 2
162
+ exclude_lines = [
163
+ " pragma: no cover" ,
164
+ " if TYPE_CHECKING:" ,
165
+ " @overload" ,
166
+ " raise NotImplementedError" ,
167
+ ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -ex
4
+
5
+ uv run coverage run -m pytest -n auto $@
6
+ uv run coverage combine
7
+ uv run coverage report
You can’t perform that action at this time.
0 commit comments