Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Disable ruff formatter and isort, and use the old import order
Browse files- .pre-commit-config.yaml +0 -2
- .vscode/settings.json +1 -2
- app.py +16 -16
- pyproject.toml +10 -1
.pre-commit-config.yaml
CHANGED
@@ -18,8 +18,6 @@ repos:
|
|
18 |
hooks:
|
19 |
- id: ruff
|
20 |
args: ["--fix"]
|
21 |
-
- id: ruff-format
|
22 |
-
args: ["--line-length", "119"]
|
23 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
24 |
rev: v1.14.1
|
25 |
hooks:
|
|
|
18 |
hooks:
|
19 |
- id: ruff
|
20 |
args: ["--fix"]
|
|
|
|
|
21 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
22 |
rev: v1.14.1
|
23 |
hooks:
|
.vscode/settings.json
CHANGED
@@ -5,8 +5,7 @@
|
|
5 |
"editor.defaultFormatter": "charliermarsh.ruff",
|
6 |
"editor.formatOnType": true,
|
7 |
"editor.codeActionsOnSave": {
|
8 |
-
"source.fixAll.ruff": "explicit"
|
9 |
-
"source.organizeImports": "explicit"
|
10 |
}
|
11 |
},
|
12 |
"[jupyter]": {
|
|
|
5 |
"editor.defaultFormatter": "charliermarsh.ruff",
|
6 |
"editor.formatOnType": true,
|
7 |
"editor.codeActionsOnSave": {
|
8 |
+
"source.fixAll.ruff": "explicit"
|
|
|
9 |
}
|
10 |
},
|
11 |
"[jupyter]": {
|
app.py
CHANGED
@@ -1,38 +1,38 @@
|
|
|
|
1 |
from app_allenai import demo as demo_allenai
|
2 |
from app_claude import demo as demo_claude
|
3 |
from app_cohere import demo as demo_cohere
|
4 |
-
from app_compare import demo as demo_compare
|
5 |
-
from app_crew import demo as demo_crew
|
6 |
-
from app_deepseek import demo as demo_deepseek
|
7 |
from app_experimental import demo as demo_experimental
|
8 |
from app_fal import demo as demo_fal
|
9 |
from app_fireworks import demo as demo_fireworks
|
10 |
-
from app_gemini import demo as demo_gemini
|
11 |
-
from app_gemini_camera import demo as demo_gemini_camera
|
12 |
-
from app_gemini_coder import demo as demo_gemini_coder
|
13 |
-
from app_gemini_voice import demo as demo_gemini_voice
|
14 |
-
from app_groq import demo as demo_groq
|
15 |
-
from app_groq_coder import demo as demo_groq_coder
|
16 |
from app_huggingface import demo as demo_huggingface
|
17 |
-
from app_hyperbolic import demo as demo_hyperbolic
|
18 |
-
from app_hyperbolic_coder import demo as demo_hyperbolic_coder
|
19 |
-
from app_lumaai import demo as demo_lumaai
|
20 |
from app_meta import demo as demo_meta
|
21 |
from app_mistral import demo as demo_mistral
|
22 |
from app_nvidia import demo as demo_nvidia
|
23 |
from app_omini import demo as demo_omini
|
24 |
-
from app_openai import demo as demo_openai
|
25 |
-
from app_openai_coder import demo as demo_openai_coder
|
26 |
from app_paligemma import demo as demo_paligemma
|
27 |
from app_perplexity import demo as demo_perplexity
|
28 |
from app_playai import demo as demo_playai
|
29 |
-
from app_qwen import demo as demo_qwen
|
30 |
from app_replicate import demo as demo_replicate
|
31 |
from app_sambanova import demo as demo_sambanova
|
32 |
from app_showui import demo as demo_showui
|
33 |
-
from app_smolagents import demo as demo_smolagents
|
34 |
from app_together import demo as demo_together
|
35 |
from app_xai import demo as demo_grok
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
from utils import get_app
|
37 |
|
38 |
# Create mapping of providers to their demos
|
|
|
1 |
+
from app_lumaai import demo as demo_lumaai
|
2 |
from app_allenai import demo as demo_allenai
|
3 |
from app_claude import demo as demo_claude
|
4 |
from app_cohere import demo as demo_cohere
|
|
|
|
|
|
|
5 |
from app_experimental import demo as demo_experimental
|
6 |
from app_fal import demo as demo_fal
|
7 |
from app_fireworks import demo as demo_fireworks
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
from app_huggingface import demo as demo_huggingface
|
|
|
|
|
|
|
9 |
from app_meta import demo as demo_meta
|
10 |
from app_mistral import demo as demo_mistral
|
11 |
from app_nvidia import demo as demo_nvidia
|
12 |
from app_omini import demo as demo_omini
|
|
|
|
|
13 |
from app_paligemma import demo as demo_paligemma
|
14 |
from app_perplexity import demo as demo_perplexity
|
15 |
from app_playai import demo as demo_playai
|
|
|
16 |
from app_replicate import demo as demo_replicate
|
17 |
from app_sambanova import demo as demo_sambanova
|
18 |
from app_showui import demo as demo_showui
|
|
|
19 |
from app_together import demo as demo_together
|
20 |
from app_xai import demo as demo_grok
|
21 |
+
from app_qwen import demo as demo_qwen
|
22 |
+
from app_deepseek import demo as demo_deepseek
|
23 |
+
from app_crew import demo as demo_crew
|
24 |
+
from app_compare import demo as demo_compare
|
25 |
+
from app_hyperbolic import demo as demo_hyperbolic
|
26 |
+
from app_openai import demo as demo_openai
|
27 |
+
from app_gemini_camera import demo as demo_gemini_camera
|
28 |
+
from app_gemini_coder import demo as demo_gemini_coder
|
29 |
+
from app_gemini import demo as demo_gemini
|
30 |
+
from app_gemini_voice import demo as demo_gemini_voice
|
31 |
+
from app_hyperbolic_coder import demo as demo_hyperbolic_coder
|
32 |
+
from app_smolagents import demo as demo_smolagents
|
33 |
+
from app_groq import demo as demo_groq
|
34 |
+
from app_groq_coder import demo as demo_groq_coder
|
35 |
+
from app_openai_coder import demo as demo_openai_coder
|
36 |
from utils import get_app
|
37 |
|
38 |
# Create mapping of providers to their demos
|
pyproject.toml
CHANGED
@@ -58,7 +58,16 @@ cohere-gradio = { git = "https://github.com/AK391/cohere-gradio.git" }
|
|
58 |
line-length = 119
|
59 |
|
60 |
[tool.ruff.lint]
|
61 |
-
select = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
ignore = ["T201"]
|
63 |
unfixable = [
|
64 |
"F401", # unused-import
|
|
|
58 |
line-length = 119
|
59 |
|
60 |
[tool.ruff.lint]
|
61 |
+
select = [
|
62 |
+
"E",
|
63 |
+
"F",
|
64 |
+
#"I",
|
65 |
+
"N",
|
66 |
+
"S",
|
67 |
+
"T",
|
68 |
+
"UP",
|
69 |
+
"W",
|
70 |
+
]
|
71 |
ignore = ["T201"]
|
72 |
unfixable = [
|
73 |
"F401", # unused-import
|