@@ -5,18 +5,23 @@ repos:
- id: ruff-check
args:
- --output-format=github
+ - --fix
name: ruff include order
- --select
- I
- - --diff
- id: ruff-format
name: ruff coding style
- --check
- --diff
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.(py|pyi)$
+ - repo: https://github.com/pre-commit/mirrors-prettier
+ rev: v3.0.3
+ hooks:
+ - id: prettier
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
@@ -4,3 +4,5 @@ extends: default
rules:
document-start: disable
new-lines: disable
+ comments:
+ min-spaces-from-content: 1