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:
1 parent
81e05acd47
commit
121ee3fe55
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user