-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.48 KB
/
.pre-commit-config.yaml
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
ci:
autofix_prs: true
repos:
- repo: https://github.com/python-poetry/poetry
rev: 2.1.2
hooks:
- id: poetry-check
name: 📜 Check pyproject with Poetry
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
name: 👄 Check code spelling
args: [--write-changes, --skip="./*, translations/*", -L hass]
exclude: (pyproject.toml|poetry.lock|)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
name: "✅ Check JSON files"
- id: check-toml
name: "✅ Check TOML files"
- id: check-yaml
name: "✅ Check YAML files"
- id: check-added-large-files
name: "📁 Check for large files"
- id: debug-statements
name: "🐛 Check for forgotten debug statemens"
- id: check-merge-conflict
name: "💥 Check for merge conflicts"
- id: check-symlinks
name: "🔗 Check for broken symlinks"
- id: end-of-file-fixer
name: "🔚 Fix End of Files"
- id: trailing-whitespace
name: "⬜ Fix trailing whitespaces"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
- id: ruff
name: "🐶 Ruff Linter"
- id: ruff-format
name: "🐶 Ruff Formatter"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: 🎨 Format using prettier