mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
add pre-commit
This commit is contained in:
parent
6040a19136
commit
263d9822d1
1 changed files with 23 additions and 0 deletions
23
.pre-commit-config.yaml
Normal file
23
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
#
|
||||
# This configuration uses local hooks that rely on packages
|
||||
# defined in requirements.txt, avoiding separate pre-commit environments.
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
# Run the Ruff linter with auto-fix
|
||||
- id: ruff
|
||||
name: ruff
|
||||
entry: ruff check --fix --exit-non-zero-on-fix
|
||||
language: system
|
||||
types: [python]
|
||||
require_serial: true
|
||||
|
||||
# Run the Ruff formatter
|
||||
- id: ruff-format
|
||||
name: ruff format
|
||||
entry: ruff format
|
||||
language: system
|
||||
types: [python]
|
||||
require_serial: true
|
||||
Loading…
Reference in a new issue