-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (48 loc) · 1.5 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (48 loc) · 1.5 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
ci:
autoupdate_schedule: weekly
autoupdate_commit_msg: "build: pre-commit autoupdate"
autofix_commit_msg: "style: pre-commit auto-fix"
autofix_prs: true
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.16
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
exclude: (.vscode|.devcontainer)
- id: pretty-format-json
args: ['--autofix', '--no-ensure-ascii']
files: (icons.json|translations/.+\.json$)
- id: check-yaml
args: ['--unsafe']
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/PyCQA/bandit
rev: 1.9.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["--skip", "*.json,*.yaml,*.yml", "--ignore-words-list=hass"]
# Exclude French documentation files
exclude: ^(captured_data/|\.gitignore|README\.md|\.github/)
- repo: local
hooks:
- id: remove-co-authored-by
name: Remove Co-Authored-By Claude
entry: sed -i '/Co-Authored-By:.*[Cc]laude/d'
language: system
stages: [commit-msg]