Skip to content

Commit ea12947

Browse files
committed
Add basedpyright
1 parent e6929dd commit ea12947

File tree

4 files changed

+56
-173
lines changed

4 files changed

+56
-173
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
default_language_version:
4-
python: python3.12
4+
python: python3.14
55

66
ci:
77
# Renovate updates the file. We can't disable pre-commit CI's autoupdate entirely
@@ -18,18 +18,18 @@ repos:
1818
- id: check-added-large-files
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.14.0
21+
rev: v0.13.3
2222
hooks:
2323
- id: ruff
2424
args: [--fix]
2525
- id: ruff-format
2626

27-
- repo: local
27+
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
28+
rev: 1.32.1
2829
hooks:
29-
- id: sync-pre-commit
30-
name: Sync pre-commit hooks
31-
language: python
32-
entry: scripts/sync-pre-commit.py
33-
additional_dependencies:
34-
- uv
35-
- ruamel.yaml
30+
- id: basedpyright
31+
32+
- repo: https://github.com/ewjoachim/sync-pre-commit-with-uv
33+
rev: 1.1.0
34+
hooks:
35+
- id: sync

pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ requires = ["hatchling"]
1515
build-backend = "hatchling.build"
1616

1717
[dependency-groups]
18-
dev = ["ruff", "mypy", "pytest", "pytest-cov", "pytest-mock", "tenacity"]
18+
dev = [
19+
"ruff",
20+
"mypy",
21+
"pytest",
22+
"pytest-cov",
23+
"pytest-mock",
24+
"tenacity",
25+
"basedpyright",
26+
]
1927

2028
[tool.hatch.build.targets.sdist]
2129
include = ["coverage_comment", "coverage_comment/default.md.j2"]
@@ -70,3 +78,9 @@ extend-ignore = [
7078

7179
[tool.ruff.lint.isort]
7280
required-imports = ["from __future__ import annotations"]
81+
82+
[tool.sync-pre-commit-with-uv.basedpyright-prek-mirror]
83+
pypi_package_name = "basedpyright"
84+
85+
[tool.basedpyright]
86+
exclude = ["tests"]

scripts/sync-pre-commit.py

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

0 commit comments

Comments
 (0)