-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (47 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (47 loc) · 1.39 KB
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
43
44
45
46
47
48
49
50
51
52
# Pre-commit hooks configuration
# See https://pre-commit.com for more information
repos:
# Mypy - Python static type checking (using uv)
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy .
language: system
pass_filenames: false
types_or: [python, pyi]
# Ruff - Python linting and formatting (using uv)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.3
hooks:
# Run the linter
- id: ruff
name: ruff check
args: [--fix]
types_or: [python, pyi]
# Run the formatter
- id: ruff-format
name: ruff format
types_or: [python, pyi]
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
# Conventional Commits - validate commit message format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.3.0
hooks:
- id: conventional-pre-commit
name: conventional commits
stages: [commit-msg]
args: []
# Detect secrets - prevent committing sensitive information
- repo: https://github.com/ibm/detect-secrets
rev: 0.13.1+ibm.64.dss
hooks:
- id: detect-secrets
name: detect secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json