new: pre-commit runs lint plus gitleaks (#74)
Local hooks run the same Ruff, pyright and import-linter checks as `just lint` through `uv run`, so versions come from uv.lock; gitleaks comes from its upstream hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a01c785842
commit
2402a9dbdd
4 files changed
+168
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# The same checks as `just lint`, run through uv so versions come from uv.lock, plus gitleaks.
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
name: ruff check
|
||||
entry: uv run ruff check --force-exclude
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: ruff-format
|
||||
name: ruff format
|
||||
entry: uv run ruff format --check --force-exclude
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: pyright
|
||||
name: pyright
|
||||
entry: uv run pyright
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
pass_filenames: false
|
||||
- id: import-linter
|
||||
name: import-linter
|
||||
entry: uv run lint-imports
|
||||
language: system
|
||||
types_or: [python, pyi, toml]
|
||||
pass_filenames: false
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.30.1
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
Reference in new issue
Block a user