Skip to content

Commit 91a401d

Browse files
committed
fix(dev): specify Python 3.12 for mypy pre-commit hook
Add language_version to mypy hook to use Python 3.12, fixing the error where fastmcp cannot be installed with Python 3.9.
1 parent 48310a1 commit 91a401d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: check-toml
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.13.3
14+
rev: v0.14.3
1515
hooks:
1616
- id: ruff
1717
args: [--fix]
@@ -21,6 +21,7 @@ repos:
2121
rev: v1.18.2
2222
hooks:
2323
- id: mypy
24+
language_version: python3.12
2425
additional_dependencies: [click, rich, python-frontmatter, pydantic, fastmcp]
2526

2627
- repo: https://github.com/PyCQA/bandit
@@ -31,7 +32,7 @@ repos:
3132
additional_dependencies: ["bandit[toml]"]
3233

3334
- repo: https://github.com/commitizen-tools/commitizen
34-
rev: v4.2.1
35+
rev: v4.9.1
3536
hooks:
3637
- id: commitizen
3738
stages: [commit-msg]

0 commit comments

Comments
 (0)