-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (44 loc) · 1.49 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (44 loc) · 1.49 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.13.0
hooks:
# Run the linter with auto-fixes
- id: ruff
types_or: [python, pyi]
args: [
--fix,
--exit-non-zero-on-fix,
--config=pyproject.toml,
"--select=F,Q,I"
]
# Run the formatter
- id: ruff-format
types_or: [python, pyi]
args: [--config=pyproject.toml]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# Prevent giant files from being committed
- id: check-added-large-files
args: ["--maxkb=1000"]
# Check for files with names that would conflict on case-insensitive filesystems
- id: check-case-conflict
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Check for debugger imports and py37+ breakpoint() calls
- id: debug-statements
# Check that executable files have shebangs
- id: check-executables-have-shebangs
# Check for symlinks which do not point to anything
- id: check-symlinks
# Check toml syntax
- id: check-toml
# Check yaml syntax
- id: check-yaml
# Make sure that text files end in a newline
- id: end-of-file-fixer
exclude: '^(\.claude/|\.cursor/|\.specify/|\.windsurf/)'
# Remove trailing whitespace
- id: trailing-whitespace
exclude: '^(\.claude/|\.cursor/|\.specify/|\.windsurf/)'