Skip to content

Commit 89a5520

Browse files
committed
chore: upgrade to python 3.13
1 parent 3a82536 commit 89a5520

File tree

6 files changed

+122
-801
lines changed

6 files changed

+122
-801
lines changed

hooks/pre-commit.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
},
2121
{
2222
"from": "py-typeddict"
23-
},
24-
{
25-
"from": "py-dataclass"
26-
},
27-
{
28-
"from": "py-literal"
2923
}
3024
]
3125
}

hooks/shared/py-dataclass.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

hooks/shared/py-literal.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

hooks/shared/py-typeddict.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "python: disallow TypedDict",
3-
"command": "git grep -q --untracked -I -e 'TypedDict' -- '*.py' && { echo '❌ Lint failed: TypedDict is not allowed. Use pydantic.BaseModel instead.'; exit 1; } || true",
2+
"name": "python: disallow TypedDict and NamedTuple",
3+
"command": "git grep -q --untracked -I -e 'TypedDict\\|NamedTuple' -- '*.py' && { echo '❌ Lint failed: TypedDict and NamedTuple are not allowed. Use @dataclass or pydantic.BaseModel instead.'; exit 1; } || true",
44
"onlyOn": "**/*.py"
55
}

0 commit comments

Comments
 (0)