Skip to content

Commit f16055b

Browse files
continue migration to Pydantic v2
pydatalab now start, but not working well pydatalab now start, but not working well pydatalab now start, but not working well pydatalab now start, but not working well pydatalab now start, but not working well Fix login with Pydantic v2+ Fix sample creation Fix sample creation Fix edit page
1 parent 921c789 commit f16055b

39 files changed

+4049
-2397
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ repos:
6666
hooks:
6767
- id: mypy
6868
additional_dependencies:
69-
["types-python-dateutil", "types-requests", "types-paramiko", "pydantic>=2.0,<3.0"]
69+
[
70+
"types-python-dateutil",
71+
"types-requests",
72+
"types-paramiko",
73+
"pydantic>=2.0,<3.0",
74+
"pydantic-settings>=2.0",
75+
]
7076
args: ["--config-file", "pydatalab/pyproject.toml"]
7177

7278
- repo: local
@@ -75,6 +81,6 @@ repos:
7581
name: Regenerate item model JSONSchemas
7682
files: "^pydatalab/src/pydatalab/models/.*.$"
7783
description: Check if the current code changes have enacted changes to the resulting JSONSchemas
78-
entry: invoke -r pydatalab dev.generate-schemas
84+
entry: bash -c "cd pydatalab && uv run invoke dev.generate-schemas"
7985
pass_filenames: false
8086
language: system

0 commit comments

Comments
 (0)