Skip to content

Commit f1c727d

Browse files
committed
Add Pydantic; new validation from specs
1 parent b927b72 commit f1c727d

5 files changed

Lines changed: 106 additions & 79 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies = [
2929
"colorama>=0.4.0",
3030
"impit>=0.9.2",
3131
"more_itertools>=10.0.0",
32+
"pydantic[email]>=2.11.0",
3233
]
3334

3435
[project.urls]
@@ -144,6 +145,7 @@ indent-style = "space"
144145
"D", # Everything from the pydocstyle
145146
"E501", # Line too long
146147
"ERA001", # Commented-out code
148+
"TC003", # Move standard library import into a type-checking block
147149
]
148150

149151
[tool.ruff.lint.flake8-quotes]
@@ -172,10 +174,7 @@ python-version = "3.10"
172174
include = ["src", "tests", "scripts", "docs", "website"]
173175

174176
[[tool.ty.overrides]]
175-
include = [
176-
"docs/**/*.py",
177-
"website/**/*.py",
178-
]
177+
include = ["docs/**/*.py", "website/**/*.py"]
179178

180179
[tool.ty.overrides.rules]
181180
unresolved-import = "ignore"

0 commit comments

Comments
 (0)