-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (38 loc) · 1.37 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (38 loc) · 1.37 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
---
repos:
# General file formatting and validation
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml # Validates YAML syntax
- id: end-of-file-fixer # Ensures files end with a newline
- id: mixed-line-ending # Detects mixed line endings (CRLF/LF)
- id: trailing-whitespace # Removes trailing whitespace
# YAML linting
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint # Lints YAML files for style and syntax
args: [--strict]
# JSON Schema validation
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.35.0
hooks:
- id: check-github-workflows # Validates GitHub Actions workflow files
# Python code formatting and linting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.4
hooks:
- id: ruff-check # Fast Python linter (replaces flake8, isort, etc.)
args: [--fix]
- id: ruff-format # Fast Python formatter (replaces black)
# Tailwind CSS class sorting
- repo: https://github.com/bartTC/tailwhip
rev: v0.11
hooks:
- id: tailwhip # Sorts Tailwind CSS classes in templates
# Dependency management
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.8
hooks:
- id: uv-lock # Ensures uv.lock is up to date with pyproject.toml