From a3b46e80cdec2bac2567c5e40e6f80e2f54f991b Mon Sep 17 00:00:00 2001 From: RisingOrange Date: Mon, 16 Feb 2026 13:00:20 +0100 Subject: [PATCH] Add pre-commit hook to disallow anki/aqt imports in ankihub_client Enforce the architectural boundary that keeps the client layer free of Anki/aqt dependencies. --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24bfae8c4..d22a7406e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,9 @@ repos: exclude: ^tests/ entry: "from ankihub([.]| import )" language: pygrep + - id: no_anki_aqt_imports_in_client + name: no_anki_aqt_imports_in_client + types: [python] + files: ^ankihub/ankihub_client/ + entry: "^(from|import) (anki|aqt)" + language: pygrep