Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

chore: files edited after running pre-commit for all files

Phillip Lagocbba92a865e4a
diff --git a/assets/releases/ver1-3-7.md b/assets/releases/ver1-3-7.md
index 2287bd360..3b92a5d11 100644
--- a/assets/releases/ver1-3-7.md
+++ b/assets/releases/ver1-3-7.md
@@ -42,7 +42,7 @@ output under control while making index activity easier to understand in the UI.
Ctrl/Cmd+Y.
- **Toolbar controls are clearer** - destructive and template actions now have
distinct tones, focus states, labels, and accessible tooltips.
-
+
## Tests
- Added OpenAI-compatible provider tests to keep `reasoning_content` separate
diff --git a/deeptutor/services/config/launch_settings.py b/deeptutor/services/config/launch_settings.py
index d091c8fb3..f8d0a5f3c 100644
--- a/deeptutor/services/config/launch_settings.py
+++ b/deeptutor/services/config/launch_settings.py
@@ -80,13 +80,11 @@ def load_launch_settings(project_root: Path | None = None) -> LaunchSettings:
process_backend_port = _coerce_port(os.getenv("BACKEND_PORT"))
process_frontend_port = _coerce_port(os.getenv("FRONTEND_PORT"))
interface_language = _normalize_language(interface_settings.get("language"))
- env_language = (
- _normalize_language(env_values.get("UI_LANGUAGE"))
- or _normalize_language(env_values.get("LANGUAGE"))
+ env_language = _normalize_language(env_values.get("UI_LANGUAGE")) or _normalize_language(
+ env_values.get("LANGUAGE")
)
- process_language = (
- _normalize_language(os.getenv("UI_LANGUAGE"))
- or _normalize_language(os.getenv("LANGUAGE"))
+ process_language = _normalize_language(os.getenv("UI_LANGUAGE")) or _normalize_language(
+ os.getenv("LANGUAGE")
)
backend_port = env_backend_port or process_backend_port or DEFAULT_BACKEND_PORT
frontend_port = env_frontend_port or process_frontend_port or DEFAULT_FRONTEND_PORT
diff --git a/deeptutor/services/llm/config.py b/deeptutor/services/llm/config.py
index 221e0e264..4c0f8d746 100644
--- a/deeptutor/services/llm/config.py
+++ b/deeptutor/services/llm/config.py
@@ -259,9 +259,7 @@ def get_llm_config() -> LLMConfig:
# Allow LLM_REASONING_EFFORT from .env to override the resolver path
env_reasoning = _strip_value(get_env_store().get("LLM_REASONING_EFFORT"))
if env_reasoning:
- _LLM_CONFIG_CACHE = _LLM_CONFIG_CACHE.model_copy(
- update={"reasoning_effort": env_reasoning}
- )
+ _LLM_CONFIG_CACHE = _LLM_CONFIG_CACHE.model_copy(update={"reasoning_effort": env_reasoning})
return _LLM_CONFIG_CACHE
diff --git a/deeptutor/services/tutorbot/model_runtime.py b/deeptutor/services/tutorbot/model_runtime.py
index 27bac9b6c..e174c575f 100644
--- a/deeptutor/services/tutorbot/model_runtime.py
+++ b/deeptutor/services/tutorbot/model_runtime.py
@@ -22,9 +22,7 @@ def resolve_tutorbot_llm_config(bot_config: Any) -> LLMConfig:
configs may still contain a raw ``model`` string, which is applied as a
model-only override on top of the current system default provider.
"""
- selection = normalize_tutorbot_llm_selection(
- getattr(bot_config, "llm_selection", None)
- )
+ selection = normalize_tutorbot_llm_selection(getattr(bot_config, "llm_selection", None))
if selection:
return resolve_llm_config_for_selection(selection)
diff --git a/web/app/(workspace)/co-writer/[docId]/page.tsx b/web/app/(workspace)/co-writer/[docId]/page.tsx
index 06e4cc612..282f3f9dc 100644
--- a/web/app/(workspace)/co-writer/[docId]/page.tsx
+++ b/web/app/(workspace)/co-writer/[docId]/page.tsx
@@ -2373,7 +2373,9 @@ export default function CoWriterPage() {
<div className="px-4 py-3">
<div className="rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-[11px] leading-relaxed text-amber-800 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-200">
- {t("Undo is available with Ctrl/Cmd+Z or the toolbar Undo button.")}
+ {t(
+ "Undo is available with Ctrl/Cmd+Z or the toolbar Undo button.",
+ )}
</div>
</div>
diff --git a/web/components/chat/home/ModelSelector.tsx b/web/components/chat/home/ModelSelector.tsx
index f40247cff..502ea621c 100644
--- a/web/components/chat/home/ModelSelector.tsx
+++ b/web/components/chat/home/ModelSelector.tsx
@@ -50,7 +50,9 @@ export default function ModelSelector({
const [open, setOpen] = useState(false);
const rootRef = useRef<HTMLDivElement>(null);
- const selectedSelection = allowSystemDefault ? value : value ?? activeDefault;
+ const selectedSelection = allowSystemDefault
+ ? value
+ : (value ?? activeDefault);
const selectedKey = llmSelectionKey(selectedSelection);
const selectedOption = useMemo(
() =>
@@ -87,11 +89,11 @@ export default function ModelSelector({
? `${selectedOption.profile_name} | ${providerLabel(selectedOption)}`
: allowSystemDefault && !selectedSelection
? defaultDetail
- : error
- ? t("Could not load models")
- : options.length === 0
- ? t("No configured models")
- : t("Choose a model");
+ : error
+ ? t("Could not load models")
+ : options.length === 0
+ ? t("No configured models")
+ : t("Choose a model");
const menuPlacementClass =
placement === "bottom" ? "top-full mt-1.5" : "bottom-full mb-1.5";
diff --git a/web/tests/skill-slug.test.ts b/web/tests/skill-slug.test.ts
index d6d279ca0..8d899458b 100644
--- a/web/tests/skill-slug.test.ts
+++ b/web/tests/skill-slug.test.ts
@@ -8,7 +8,10 @@ import {
} from "../lib/skill-slug";
test("slugifySkillName normalizes common free-text names", () => {
- assert.equal(slugifySkillName("Socratic Math Mentor"), "socratic-math-mentor");
+ assert.equal(
+ slugifySkillName("Socratic Math Mentor"),
+ "socratic-math-mentor",
+ );
assert.equal(slugifySkillName("My Skill__v2"), "my-skill-v2");
assert.equal(slugifySkillName("___Tutor!! 2026"), "tutor-2026");
});