From d4eab2cb34a232c98575f9b3571947e48553e85a Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 12 Jul 2026 20:15:19 +0545 Subject: [PATCH] chore: add pre-commit config with ruff and standard hooks - ruff lint + format (v0.15.2) - trailing whitespace, EOF fixer, YAML/TOML validation --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d434388 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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