chore: add pre-commit config with ruff and standard hooks

- ruff lint + format (v0.15.2)
- trailing whitespace, EOF fixer, YAML/TOML validation
This commit is contained in:
sankalp committed 2026-07-12 20:15:19 +05:45
1 parent c445b2e2a4
commit d4eab2cb34
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml