Skip to content

Commit 513adef

Browse files
chore(deps): update dependency griffe to ~=1.15.0 (#133)
* chore(deps): update dependency griffe to ~=1.15.0 * test: fix testcases --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mark Shui Hu <watermarkhu@gmail.com>
1 parent 131c0f2 commit 513adef

6 files changed

Lines changed: 457 additions & 35 deletions

pyproject.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ classifiers = [
2727
]
2828

2929
dependencies = [
30-
"griffe~=1.14.0",
31-
"maxx~=0.5.0",
30+
"griffe~=1.15.0",
31+
"maxx~=0.5.5",
3232
"mkdocstrings~=0.29",
3333
"mkdocs-autorefs~=1.4",
3434
"charset-normalizer~=3.4",
@@ -69,6 +69,16 @@ build-backend = "hatchling.build"
6969
default-groups = ["dev", "docs"]
7070
managed = true
7171

72+
[tool.pytest]
73+
minversion = "9.0"
74+
addopts = ["-v", "--tb=short", "--color=yes"]
75+
pythonpath = [
76+
"test"
77+
]
78+
markers = [
79+
"without_handler"
80+
]
81+
7282
[tool.ruff]
7383
target-version = "py310"
7484
line-length = 100
@@ -93,7 +103,7 @@ indent-style = "space"
93103
test-dir = "test"
94104
storage-dir = "test/snapshots"
95105
format-command = "ruff format --config pyproject.toml --stdin-filename {filename}"
96-
default-flags=["create", "fix", "trim"]
106+
default-flags=["create", "trim"]
97107

98108
[tool.ty.src]
99109
include = ["src", "pyproject.toml"]
@@ -124,11 +134,3 @@ prerelease = false
124134

125135
[tool.semantic_release.commit_parser_options]
126136
patch_tags = ["fix", "perf", "chore"]
127-
128-
[tool.pytest.ini_options]
129-
pythonpath = [
130-
"test"
131-
]
132-
markers = [
133-
"without_handler"
134-
]

test/snapshots/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@
136136
toc = snapshot(
137137
{
138138
(("show_root_toc_entry", False), ("show_symbol_type_toc", True)): external(
139-
"hash:48aefa4b0fb7*.html"
139+
"hash:6bb20bf794a2*.html"
140140
),
141141
(("show_root_toc_entry", False), ("show_symbol_type_toc", False)): external(
142-
"hash:699b372080b8*.html"
142+
"hash:3367387c10a2*.html"
143143
),
144144
(("show_root_toc_entry", True), ("show_symbol_type_toc", False)): external(
145-
"hash:86546dfb23ee*.html"
145+
"hash:125feda15b39*.html"
146146
),
147147
(("show_root_toc_entry", True), ("show_symbol_type_toc", True)): external(
148-
"hash:9b9a0d06c60d*.html"
148+
"hash:b3e1bbeb809f*.html"
149149
),
150150
}
151151
)

test/snapshots/external/86546dfb23ee877c47b6f9010480a4018bae6c22988f8471cc29d582c7f177ca.html renamed to test/snapshots/external/125feda15b39325f9a0e8ad332d7e0989cb2fb05626be3137d54a76fe60b6be2.html

Lines changed: 110 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,119 @@ <h2 class="doc doc-heading" id="forced_docstring">
272272
Docstring for forced_docstring.
273273
</p>
274274
<p>
275-
Arguments:
276-
inputA (double): First input parameter
277-
inputB (string): Second input parameter
275+
<span class="doc-section-title">
276+
Input arguments:
277+
</span>
278278
</p>
279+
<table>
280+
<thead>
281+
<tr>
282+
<th>
283+
Name
284+
</th>
285+
<th>
286+
Type
287+
</th>
288+
<th>
289+
Description
290+
</th>
291+
<th>
292+
Default
293+
</th>
294+
</tr>
295+
</thead>
296+
<tbody>
297+
<tr class="doc-section-item">
298+
<td>
299+
<code>
300+
inputA
301+
</code>
302+
</td>
303+
<td>
304+
<code>
305+
double
306+
</code>
307+
</td>
308+
<td>
309+
<div class="doc-md-description">
310+
<p>
311+
First input parameter
312+
</p>
313+
</div>
314+
</td>
315+
<td>
316+
<em>
317+
required
318+
</em>
319+
</td>
320+
</tr>
321+
<tr class="doc-section-item">
322+
<td>
323+
<code>
324+
inputB
325+
</code>
326+
</td>
327+
<td>
328+
<code>
329+
string
330+
</code>
331+
</td>
332+
<td>
333+
<div class="doc-md-description">
334+
<p>
335+
Second input parameter
336+
</p>
337+
</div>
338+
</td>
339+
<td>
340+
<em>
341+
required
342+
</em>
343+
</td>
344+
</tr>
345+
</tbody>
346+
</table>
279347
<p>
280-
Outputs:
281-
outputs (struct): A structure containing the results
348+
<span class="doc-section-title">
349+
Output arguments:
350+
</span>
282351
</p>
352+
<table>
353+
<thead>
354+
<tr>
355+
<th>
356+
Name
357+
</th>
358+
<th>
359+
Type
360+
</th>
361+
<th>
362+
Description
363+
</th>
364+
</tr>
365+
</thead>
366+
<tbody>
367+
<tr class="doc-section-item">
368+
<td>
369+
<code>
370+
outputs
371+
</code>
372+
</td>
373+
<td>
374+
<code>
375+
struct
376+
</code>
377+
</td>
378+
<td>
379+
<div class="doc-md-description">
380+
<p>
381+
A structure containing the results
382+
</p>
383+
</div>
384+
</td>
385+
</tr>
386+
</tbody>
387+
</table>
283388
</div>
284389
</div>
285390
<div class="doc doc-object doc-function">

test/snapshots/external/699b372080b8da41c3a063f2c065ea30d5978d265e06e19af0e45976ff6e1c75.html renamed to test/snapshots/external/3367387c10a2afe5eec4422034ecb5255d164f6d4f704f0c2c32349b3df8947b.html

Lines changed: 110 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,119 @@ <h2 class="doc doc-heading" id="forced_docstring">
272272
Docstring for forced_docstring.
273273
</p>
274274
<p>
275-
Arguments:
276-
inputA (double): First input parameter
277-
inputB (string): Second input parameter
275+
<span class="doc-section-title">
276+
Input arguments:
277+
</span>
278278
</p>
279+
<table>
280+
<thead>
281+
<tr>
282+
<th>
283+
Name
284+
</th>
285+
<th>
286+
Type
287+
</th>
288+
<th>
289+
Description
290+
</th>
291+
<th>
292+
Default
293+
</th>
294+
</tr>
295+
</thead>
296+
<tbody>
297+
<tr class="doc-section-item">
298+
<td>
299+
<code>
300+
inputA
301+
</code>
302+
</td>
303+
<td>
304+
<code>
305+
double
306+
</code>
307+
</td>
308+
<td>
309+
<div class="doc-md-description">
310+
<p>
311+
First input parameter
312+
</p>
313+
</div>
314+
</td>
315+
<td>
316+
<em>
317+
required
318+
</em>
319+
</td>
320+
</tr>
321+
<tr class="doc-section-item">
322+
<td>
323+
<code>
324+
inputB
325+
</code>
326+
</td>
327+
<td>
328+
<code>
329+
string
330+
</code>
331+
</td>
332+
<td>
333+
<div class="doc-md-description">
334+
<p>
335+
Second input parameter
336+
</p>
337+
</div>
338+
</td>
339+
<td>
340+
<em>
341+
required
342+
</em>
343+
</td>
344+
</tr>
345+
</tbody>
346+
</table>
279347
<p>
280-
Outputs:
281-
outputs (struct): A structure containing the results
348+
<span class="doc-section-title">
349+
Output arguments:
350+
</span>
282351
</p>
352+
<table>
353+
<thead>
354+
<tr>
355+
<th>
356+
Name
357+
</th>
358+
<th>
359+
Type
360+
</th>
361+
<th>
362+
Description
363+
</th>
364+
</tr>
365+
</thead>
366+
<tbody>
367+
<tr class="doc-section-item">
368+
<td>
369+
<code>
370+
outputs
371+
</code>
372+
</td>
373+
<td>
374+
<code>
375+
struct
376+
</code>
377+
</td>
378+
<td>
379+
<div class="doc-md-description">
380+
<p>
381+
A structure containing the results
382+
</p>
383+
</div>
384+
</td>
385+
</tr>
386+
</tbody>
387+
</table>
283388
</div>
284389
</div>
285390
<div class="doc doc-object doc-function">

0 commit comments

Comments
 (0)