-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (58 loc) · 1.62 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (58 loc) · 1.62 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
files: ^((pyisyox|examples)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
args:
- --toml
- pyproject.toml
- --ignore-words-list=ETo,ETO
- --quiet-level=2
exclude: ^tests/fixtures/|homeassistant/generated/|tests/components/.*/snapshots/
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
stages: [manual]
- id: check-json
exclude: (.vscode|.devcontainer)
- id: no-commit-to-branch
args: ["--branch=dev", "--branch=main"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
additional_dependencies:
- prettier@3.6.2
- prettier-plugin-sort-json@4.1.1
- repo: local
hooks:
- id: mypy
name: mypy
entry: script/run-in-env.sh mypy
language: script
require_serial: true
files: ^pyisyox/.*\.py$
- id: pylint
name: pylint
entry: script/run-in-env.sh pylint --rcfile=.pylintrc
language: script
require_serial: true
files: ^pyisyox/.*\.py$