Skip to content

Commit 5871f9d

Browse files
committed
chore(lint): add pyright to pre-commit and dev requirements
Include pyright as a pre-commit hook and in requirements-dev.txt to improve static type checking for Python code. This enhances code quality by catching type errors early in the development workflow.
1 parent 322e7e6 commit 5871f9d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ repos:
4444
entry: mypy
4545
language: system
4646
types: [python]
47+
- id: pyright
48+
name: pyright
49+
entry: pyright
50+
language: system
51+
types: [python]

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# linting
44
mypy~=1.16.1
55
pyrefly~=0.22.0
6+
pyright~=1.1.404
67
pre-commit~=4.2.0
78

89
build

0 commit comments

Comments
 (0)