

switch to basedpyright
@905447e6bc1e002a14aed3a06dafe70947166d0b
--- .pre-commit-config.yaml
+++ .pre-commit-config.yaml
... | ... | @@ -25,19 +25,16 @@ |
25 | 25 |
hooks: |
26 | 26 |
- id: hadolint |
27 | 27 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
28 |
- # Ruff version. |
|
29 | 28 |
rev: v0.5.0 |
30 | 29 |
hooks: |
31 |
- # Run the linter. |
|
32 | 30 |
- id: ruff |
33 | 31 |
args: [--fix] |
34 |
- # Run the formatter. |
|
35 | 32 |
- id: ruff-format |
36 | 33 |
- repo: https://github.com/google/yamlfmt |
37 | 34 |
rev: v0.13.0 |
38 | 35 |
hooks: |
39 | 36 |
- id: yamlfmt |
40 |
- - repo: https://github.com/RobertCraigie/pyright-python |
|
41 |
- rev: v1.1.369 |
|
37 |
+ - repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror |
|
38 |
+ rev: v1.13.0 |
|
42 | 39 |
hooks: |
43 |
- - id: pyright |
|
40 |
+ - id: basedpyright |
--- flake.nix
+++ flake.nix
... | ... | @@ -24,10 +24,8 @@ |
24 | 24 |
parallel |
25 | 25 |
pre-commit |
26 | 26 |
pv |
27 |
- pyright |
|
28 | 27 |
python312 |
29 | 28 |
rsync |
30 |
- ruff |
|
31 | 29 |
websocat |
32 | 30 |
uv |
33 | 31 |
]; |
--- pyproject.toml
+++ pyproject.toml
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 |
] |
19 | 19 |
|
20 | 20 |
[project.optional-dependencies] |
21 |
-dev = ["ruff", "pytest", "pytest-xdist"] |
|
21 |
+dev = ["ruff==0.5.3", "pytest", "basedpyright==1.13.0", "pytest-xdist"] |
|
22 | 22 |
|
23 | 23 |
other = ["youtube-dl @ git+https://github.com/ytdl-org/youtube-dl.git@37cea84f775129ad715b9bcd617251c831fcc980", "aider-chat==0.39.0"] |
24 | 24 |
|
... | ... | @@ -74,10 +74,10 @@ |
74 | 74 |
# Like Black, automatically detect the appropriate line ending. |
75 | 75 |
line-ending = "auto" |
76 | 76 |
|
77 |
-[tool.pyright] |
|
78 |
-# typeCheckingMode = "strict" |
|
77 |
+[tool.basedpyright] |
|
78 |
+typeCheckingMode = "standard" |
|
79 | 79 |
pythonVersion = "3.12" |
80 | 80 |
pythonPlatform = "Linux" |
81 |
-# https://github.com/RobertCraigie/pyright-python/tree/804dafbe7ab1b9c8766c2b4755fb29db37959ab7?tab=readme-ov-file#pre-commit |
|
81 |
+# https://github.com/DetachHead/basedpyright?tab=readme-ov-file#pre-commit-hook |
|
82 | 82 |
venvPath = "." |
83 | 83 |
venv = ".venv" |
--- requirements-all.txt
+++ requirements-all.txt
... | ... | @@ -38,6 +38,8 @@ |
38 | 38 |
# via faster-whisper |
39 | 39 |
backoff==2.2.1 |
40 | 40 |
# via aider-chat |
41 |
+basedpyright==1.13.0 |
|
42 |
+ # via faster-whisper-server (pyproject.toml) |
|
41 | 43 |
beautifulsoup4==4.12.3 |
42 | 44 |
# via aider-chat |
43 | 45 |
blinker==1.8.2 |
... | ... | @@ -285,6 +287,8 @@ |
285 | 287 |
# yarl |
286 | 288 |
networkx==3.2.1 |
287 | 289 |
# via aider-chat |
290 |
+nodejs-wheel-binaries==20.15.1 |
|
291 |
+ # via basedpyright |
|
288 | 292 |
numpy==1.26.4 |
289 | 293 |
# via |
290 | 294 |
# faster-whisper-server (pyproject.toml) |
... | ... | @@ -484,7 +488,7 @@ |
484 | 488 |
# via |
485 | 489 |
# aider-chat |
486 | 490 |
# google-auth |
487 |
-ruff==0.5.2 |
|
491 |
+ruff==0.5.3 |
|
488 | 492 |
# via |
489 | 493 |
# faster-whisper-server (pyproject.toml) |
490 | 494 |
# gradio |
... | ... | @@ -492,7 +496,7 @@ |
492 | 496 |
# via aider-chat |
493 | 497 |
semantic-version==2.10.0 |
494 | 498 |
# via gradio |
495 |
-setuptools==70.3.0 |
|
499 |
+setuptools==71.0.3 |
|
496 | 500 |
# via ctranslate2 |
497 | 501 |
shellingham==1.5.4 |
498 | 502 |
# via typer |
--- requirements-dev.txt
+++ requirements-dev.txt
... | ... | @@ -18,6 +18,8 @@ |
18 | 18 |
# referencing |
19 | 19 |
av==12.2.0 |
20 | 20 |
# via faster-whisper |
21 |
+basedpyright==1.13.0 |
|
22 |
+ # via faster-whisper-server (pyproject.toml) |
|
21 | 23 |
certifi==2024.7.4 |
22 | 24 |
# via |
23 | 25 |
# httpcore |
... | ... | @@ -88,7 +90,7 @@ |
88 | 90 |
# openai |
89 | 91 |
httpx-sse==0.4.0 |
90 | 92 |
# via faster-whisper-server (pyproject.toml) |
91 |
-huggingface-hub==0.23.5 |
|
93 |
+huggingface-hub==0.24.0 |
|
92 | 94 |
# via |
93 | 95 |
# faster-whisper-server (pyproject.toml) |
94 | 96 |
# faster-whisper |
... | ... | @@ -130,6 +132,8 @@ |
130 | 132 |
# via markdown-it-py |
131 | 133 |
mpmath==1.3.0 |
132 | 134 |
# via sympy |
135 |
+nodejs-wheel-binaries==20.15.1 |
|
136 |
+ # via basedpyright |
|
133 | 137 |
numpy==1.26.4 |
134 | 138 |
# via |
135 | 139 |
# faster-whisper-server (pyproject.toml) |
... | ... | @@ -142,7 +146,7 @@ |
142 | 146 |
# pandas |
143 | 147 |
onnxruntime==1.18.1 |
144 | 148 |
# via faster-whisper |
145 |
-openai==1.35.14 |
|
149 |
+openai==1.35.15 |
|
146 | 150 |
# via faster-whisper-server (pyproject.toml) |
147 | 151 |
orjson==3.10.6 |
148 | 152 |
# via gradio |
... | ... | @@ -225,13 +229,13 @@ |
225 | 229 |
# via |
226 | 230 |
# jsonschema |
227 | 231 |
# referencing |
228 |
-ruff==0.5.2 |
|
232 |
+ruff==0.5.3 |
|
229 | 233 |
# via |
230 | 234 |
# faster-whisper-server (pyproject.toml) |
231 | 235 |
# gradio |
232 | 236 |
semantic-version==2.10.0 |
233 | 237 |
# via gradio |
234 |
-setuptools==70.3.0 |
|
238 |
+setuptools==71.0.3 |
|
235 | 239 |
# via ctranslate2 |
236 | 240 |
shellingham==1.5.4 |
237 | 241 |
# via typer |
--- requirements.txt
+++ requirements.txt
... | ... | @@ -86,7 +86,7 @@ |
86 | 86 |
# openai |
87 | 87 |
httpx-sse==0.4.0 |
88 | 88 |
# via faster-whisper-server (pyproject.toml) |
89 |
-huggingface-hub==0.23.5 |
|
89 |
+huggingface-hub==0.24.0 |
|
90 | 90 |
# via |
91 | 91 |
# faster-whisper-server (pyproject.toml) |
92 | 92 |
# faster-whisper |
... | ... | @@ -138,7 +138,7 @@ |
138 | 138 |
# pandas |
139 | 139 |
onnxruntime==1.18.1 |
140 | 140 |
# via faster-whisper |
141 |
-openai==1.35.14 |
|
141 |
+openai==1.35.15 |
|
142 | 142 |
# via faster-whisper-server (pyproject.toml) |
143 | 143 |
orjson==3.10.6 |
144 | 144 |
# via gradio |
... | ... | @@ -212,11 +212,11 @@ |
212 | 212 |
# via |
213 | 213 |
# jsonschema |
214 | 214 |
# referencing |
215 |
-ruff==0.5.2 |
|
215 |
+ruff==0.5.3 |
|
216 | 216 |
# via gradio |
217 | 217 |
semantic-version==2.10.0 |
218 | 218 |
# via gradio |
219 |
-setuptools==70.3.0 |
|
219 |
+setuptools==71.0.3 |
|
220 | 220 |
# via ctranslate2 |
221 | 221 |
shellingham==1.5.4 |
222 | 222 |
# via typer |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?