From 9841662aa76c21c519a0cc792ad530a175896d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=BCller?= Date: Wed, 5 Jun 2024 09:00:14 +0200 Subject: [PATCH] pre-commit: call ruff during git-commit --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1830f839..55181b3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,9 @@ repos: hooks: - id: pyspelling args: ["--config", ".spellcheck.yml"] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.7 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format