forked from wills106/homeassistant-solax-modbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 824 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 824 Bytes
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: codespell
name: codespell
entry: uv run codespell
language: system
types: [text]
exclude_types: [csv, json]
# Exclude translation files except English (en.json)
exclude: ^custom_components/solax_modbus/translations/(?!en\.json).+
- id: mypy
name: mypy type checking
entry: uv run mypy
language: system
types: [python]
pass_filenames: false
args: ["custom_components/solax_modbus", "tests"]
verbose: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format