Add precommit to run ruff

This commit is contained in:
2025-12-12 11:16:58 +05:30
parent 5c0289e715
commit 219acb3513
14 changed files with 165 additions and 27 deletions

9
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.9
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format