From 0e86cde0b9af6a483d4b71bda2b5b54fb9401bb4 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 18 Apr 2024 15:20:48 +0530 Subject: [PATCH] ci: ruff only fix imports (cherry picked from commit 229fc715c9afb6337f2bb5211c4673eb24e5c4e7) # Conflicts: # .pre-commit-config.yaml --- .pre-commit-config.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc037dda3e7..d8399041af9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,11 +23,19 @@ repos: rev: v0.2.0 hooks: - id: ruff +<<<<<<< HEAD name: "Run ruff linter and apply fixes" args: ["--fix"] +======= + name: "Run ruff import sorter" + args: ["--select=I", "--fix"] + + - id: ruff + name: "Run ruff linter" +>>>>>>> 229fc715c9 (ci: ruff only fix imports) - id: ruff-format - name: "Format Python code" + name: "Run ruff formatter" - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.7.1