From fa9bb2cdabf6d61e0ec056b963e512a7cc6e1f45 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 3 Jan 2026 09:25:27 +0100 Subject: [PATCH] Add Ruff formater in pre-hook --- .pre-commit-config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 260d0204..37212c4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,8 +6,12 @@ repos: name: "๐Ÿ”’ security ยท Detect hardcoded secrets" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.1 + rev: v0.14.10 hooks: + - id: ruff-format + name: "๐Ÿ python ยท Formatter with Ruff" + types_or: [ python, pyi ] + args: [ --config, './pyproject.toml' ] - id: ruff-check name: "๐Ÿ python ยท Linter with Ruff" types_or: [ python, pyi ]