mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
Added ruff to pre-commit hooks (#7124)
This commit is contained in:
parent
19a787c235
commit
2cc14055cf
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,15 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.5.4
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
args: [--fix]
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||
rev: 24.4.2
|
||||
hooks:
|
||||
|
|
Loading…
Reference in a new issue