-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (37 loc) · 924 Bytes
/
.pre-commit-config.yaml
File metadata and controls
42 lines (37 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Base pre-commit configuration for Python projects
# Install jj-pre-push to auto-run on `jj git push`:
# uv tool install jj-pre-push
#
# Or run manually:
# pre-commit run --all-files
repos:
- repo: git@github.com:astral-sh/ruff-pre-commit.git
rev: v0.9.1
hooks:
# Run the formatter
- id: ruff-format
types_or: [python, pyi, jupyter, toml]
# Run the linter
- id: ruff
types_or: [python, pyi, jupyter, toml]
args: [--fix]
- repo: local
hooks:
- id: ty
name: ty
entry: ty check
language: system
types: [python]
pass_filenames: false
- repo: git@github.com:gitleaks/gitleaks.git
rev: v8.22.1
hooks:
- id: gitleaks
- repo: local
hooks:
- id: deptry
name: deptry
entry: uv run deptry .
language: system
pass_filenames: false
always_run: true