From 121ee3fe553e7186d81adb0e0d8eece363628ca7 Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Wed, 2 Dec 2026 21:27:50 +0100 Subject: [PATCH] Run import-linter as pre-commit hook The CI already runs the pre-commit hooks, so the contract is enforced there too. Co-Authored-By: Claude Sonnet 5.5 --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b82af7..a4ff266 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,12 @@ repos: entry: uv run ruff format language: system types_or: [python, pyi] + - id: import-linter + name: import-linter + entry: uv run lint-imports --no-logo + language: system + files: ^(src/chemenu/.*\.py|pyproject\.toml)$ + pass_filenames: false - id: check-yaml name: check yaml entry: uv run check-yaml