Skip to content

Commit

Permalink
Added ruff to pre-commit hooks (esphome#7124)
Browse files Browse the repository at this point in the history
  • Loading branch information
clydebarrow authored Jul 23, 2024
1 parent 19a787c commit 2cc1405
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2cc1405

Please sign in to comment.