-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (29 loc) · 1.16 KB
/
.pre-commit-config.yaml
File metadata and controls
31 lines (29 loc) · 1.16 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
# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # Updated rev, use latest stable
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: debug-statements
- id: fix-encoding-pragma
# Note: The warning about deprecated stages might still appear
# Run `pre-commit autoupdate` to potentially fix if desired.
- repo: https://github.com/astral-sh/ruff-pre-commit
# Find the latest tag on GitHub https://github.com/astral-sh/ruff-pre-commit/tags
rev: v0.5.5 # Use the latest stable tag
hooks:
# Run the linter (replaces flake8, isort)
- id: ruff
args: [--fix, --exit-non-zero-on-fix] # Auto-fix issues and fail if fixes were made
# Run the formatter (replaces black)
- id: ruff-format
# Keep mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0 # Use the latest stable version compatible with your project
hooks:
- id: mypy
additional_dependencies: [types-setuptools]
# Add other specific types-* if mypy complains later