-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (38 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (38 loc) · 1.13 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
# Simplified pre-commit hooks for beta stage
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
default_language_version:
python: python3.12
repos:
# Ruff - Fast Python linter and formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
# Run the formatter only (no linting)
- id: ruff-format
types_or: [python, pyi]
# Basic file checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
exclude: ^mkdocs\.yml$
- id: check-toml
- id: check-json
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
# CI configuration
ci:
autofix_commit_msg: "style: auto-fixes from pre-commit hooks"
autofix_prs: true
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autoupdate_schedule: weekly
skip: []
submodules: false