From e9756856f117428a3fdaffeb780f8b6a40bd23c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 12 May 2024 18:31:10 +0300 Subject: [PATCH] Setup ruff (from astral-sh) pre-commit hook --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6059c3ff1..0edf9f64b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,13 @@ repos: - id: destroyed-symlinks - id: mixed-line-ending + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.4 + hooks: + - id: ruff + args: [ --fix ] + - id: ruff-format + - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: