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 <noreply@anthropic.com>
This commit is contained in:
torbenandClaude Sonnet 5.5 committed 2026-12-02 21:33:00 +01:00
1 parent 81e05acd47
commit 121ee3fe55
1 file changed
+6
+6
View File
@@ -14,6 +14,12 @@ repos:
entry: uv run ruff format entry: uv run ruff format
language: system language: system
types_or: [python, pyi] 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 - id: check-yaml
name: check yaml name: check yaml
entry: uv run check-yaml entry: uv run check-yaml