-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (59 loc) · 1.73 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
66 lines (59 loc) · 1.73 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Pre-commit hooks for technick.ai
# Install: pre-commit install
# Run manually: pre-commit run --all-files
exclude: '\.git/|__pycache__/|\.pyc'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
name: Block large files
args: [--maxkb=500]
- id: check-ast
name: Validate Python syntax
- id: check-merge-conflict
name: Detect merge conflicts
- id: check-symlinks
name: Validate symlinks
- id: check-yaml
name: Validate YAML syntax
args: [--allow-multiple-documents]
- id: trailing-whitespace
name: Trim whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
name: Replace tabs with spaces
- repo: https://github.com/sirosen/texthooks
rev: 0.7.1
hooks:
- id: fix-smartquotes
name: Fix smart quotes
- id: forbid-bidi-controls
name: Forbid bidirectional text (security)
# Ruff replaces flake8, pylint, isort and more
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.5
hooks:
- id: ruff
name: Fix Python issues (Ruff)
args: [--fix]
- id: ruff-format
name: Format Python (Ruff)
# Prettier for HTML, CSS, JS, JSON, YAML
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
name: Format with Prettier
types_or: ["html", "css", "javascript", "json", "yaml"]
exclude: |
(?x)^(
.*\.min\.(js|css)
)$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.8
hooks:
- id: actionlint
name: Check GitHub Actions