From f0330469630cd03f29cc6a0dd4d9bcc6497c6799 Mon Sep 17 00:00:00 2001 From: Vaibhav159 Date: Fri, 28 Feb 2025 08:25:15 +0530 Subject: [PATCH] using ruff automated formatting to avoid repeated failures --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6906b571b..d48d8bb8c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,8 @@ repos: - - repo: local + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.7 hooks: - - id: ruff-format-hook - name: Check ruff formatting - entry: sh scripts/pre-commit.sh - language: system + - id: ruff + language_version: python3 + args: [ --select, I, ] + - id: ruff-format