forked from cereal2nd/velbus-aio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
79 lines (79 loc) · 2.12 KB
/
.pre-commit-config.yaml
File metadata and controls
79 lines (79 loc) · 2.12 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
67
68
69
70
71
72
73
74
75
76
77
78
79
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-check
files: ^velbusaio/.+\.py?$
args:
- --fix
- id: ruff-format
files: ^velbusaio/.+\.py?$
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args:
- --quiet-level=2
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
- pycodestyle
- pyflakes
- flake8-docstrings
- pydocstyle
- flake8-comprehensions
- flake8-noqa
- mccabe
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-json
- id: check-builtin-literals
- id: check-case-conflict
- id: end-of-file-fixer
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-no-eval
- id: python-no-log-warn
- 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: https://github.com/cdce8p/python-typing-update
rev: v0.8.1
hooks:
- id: python-typing-update
stages: [manual]
args:
- --py311-plus
- --force
- --keep-updates
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest tests
language: system
types: [python]
pass_filenames: false
always_run: true
- id: validate-module-specs
name: Validate module specs and MODULE_DIRECTORY consistency
entry: python3 scripts/parse_specs.py
language: system
pass_filenames: false
files: ^(velbusaio/module_spec/.*\.json|velbusaio/command_registry\.py)$