From ab9012b6f825fb33fa1b6c36ac8fb25cba8b67bc Mon Sep 17 00:00:00 2001 From: Bulygin Evgeny Date: Wed, 29 Jan 2025 16:31:48 +0500 Subject: [PATCH] Changed order of ruff actions in precommit, now `format` is the first because `format` action fix some linters errors like `unsorted imports` --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf0e8f7653..ea8056071e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,8 +3,9 @@ repos: # Ruff version. rev: v0.6.9 hooks: + # Run the formatter. + - id: ruff-format # Run the linter. - id: ruff args: ["--fix", "--show-fixes"] - # Run the formatter. - - id: ruff-format +