mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-08 05:03:52 -05:00
Add pre-commit
This commit is contained in:
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
# Ruff version.
|
||||||
|
rev: v0.9.10
|
||||||
|
hooks:
|
||||||
|
# Run the linter.
|
||||||
|
- id: ruff
|
||||||
|
args: [--fix]
|
||||||
|
# Run the formatter.
|
||||||
|
- id: ruff-format
|
||||||
@@ -10,4 +10,5 @@ cryptography # should already be installed with Home Assistant
|
|||||||
# Development
|
# Development
|
||||||
colorlog
|
colorlog
|
||||||
pip>=21.0
|
pip>=21.0
|
||||||
|
pre-commit
|
||||||
ruff
|
ruff
|
||||||
@@ -8,4 +8,6 @@ cd "$(dirname "$0")/.."
|
|||||||
|
|
||||||
python3 -m pip install --requirement requirements.txt --upgrade
|
python3 -m pip install --requirement requirements.txt --upgrade
|
||||||
|
|
||||||
|
pre-commit install
|
||||||
|
|
||||||
mkdir -p config
|
mkdir -p config
|
||||||
Reference in New Issue
Block a user