1
0
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:
Nathan Spencer
2025-03-09 17:07:06 +00:00
parent 108b1850b7
commit c2c62bb875
3 changed files with 13 additions and 0 deletions

10
.pre-commit-config.yaml Normal file
View 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

View File

@@ -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

View File

@@ -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