File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,18 +98,24 @@ Run all pre-commit hooks:
9898uv run pre-commit run --all-files
9999```
100100
101- Lint all files in the current directory :
101+ Lint all files:
102102
103103``` sh
104- uv run ruff check --fix
104+ uv run ruff check # --fix
105105```
106106
107- Format all files in the current directory :
107+ Format all files:
108108
109109``` sh
110110uv run ruff format
111111```
112112
113+ Run type checking:
114+
115+ ``` sh
116+ uv run pyright
117+ ```
118+
113119## Build
114120
115121Generate distribution packages:
Original file line number Diff line number Diff line change 2121 - id : ruff
2222 args : [--fix]
2323 - id : ruff-format
24+
25+ - repo : https://github.com/RobertCraigie/pyright-python
26+ rev : v1.1.408
27+ hooks :
28+ - id : pyright
29+ entry : bash -c 'uv run pyright'
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ docs = [
2222lint = [
2323 " mypy==1.19.1" ,
2424 " pre-commit==4.5.1" ,
25+ " pyright==1.1.408" ,
2526 " ruff==0.15.2" ,
2627]
2728test = [
@@ -74,3 +75,8 @@ fail_under = 100
7475
7576[tool .coverage .html ]
7677show_contexts = true
78+
79+ [tool .pyright ]
80+ include = [" src" , " tests" ]
81+ strict = [" src/**" ]
82+ typeCheckingMode = " strict"
You can’t perform that action at this time.
0 commit comments