-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (37 loc) · 1.4 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (37 loc) · 1.4 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
exclude: |
(?x)^(
docs/site/.*| # Exclude mkdocs compiled files
\.history/.*| # Exclude history files
.*cache.*/.*| # Exclude cache directories
.*venv.*/.*| # Exclude virtual environment directories
)$
fail_fast: true
default_install_hook_types:
- pre-commit
- commit-msg
repos:
# -------------------------- 🔍 Code Quality Tools ------------------------- #
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.11
hooks:
- id: ruff-format
name: "🐍 python · Format with Ruff"
- id: ruff
name: "🐍 python · Lint and perform safe auto-fixes with Ruff"
args: [--fix]
# ---------------------------- ⚡️ uv Build Tools --------------------------- #
# This helps ensure cross-compatibility with people who don't wish to use uv
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.7.18
hooks:
- id: uv-sync
name: "⚡️ uv · Sync dependencies with uv"
- id: uv-lock
name: "⚡️ uv · Update dependency lockfile"
- id: uv-export
name: "⚡️ uv · Export dev requirements"
args: ["--no-hashes", "--only-group=dev", "--output-file=requirements-dev.txt"]
- id: uv-export
name: "⚡️ uv · Export docs requirements"
args: ["--no-hashes", "--only-group=docs", "--output-file=requirements-docs.txt"]