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