From 571c43f03740fe836245b4dfc1afa14654c99b33 Mon Sep 17 00:00:00 2001 From: Ivan Yordanov Date: Wed, 27 Sep 2023 15:31:57 +0300 Subject: [PATCH] ci: attempt to fix --- .github/ruff-matcher.json | 2 +- .pre-commit-config.yaml | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/ruff-matcher.json b/.github/ruff-matcher.json index 6a582326a..0f01452e9 100644 --- a/.github/ruff-matcher.json +++ b/.github/ruff-matcher.json @@ -4,7 +4,7 @@ "owner": "ruff", "pattern": [ { - "regexp": "/^(.*)\/(.+\\.py):(\\d+):(\\d+):\\s([\\da-zA-Z]+)\\s(.*)$/mg", + "regexp": "^(.*)\/(.+\\.py):(\\d+):(\\d+):\\s([\\da-zA-Z]+)\\s(.*)$/mg", "fromPath": 1, "file": 2, "line": 3, diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d2767016..3245ebb11 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,16 +8,14 @@ repos: language: system types_or: [python] require_serial: true # run once for all files - - repo: local - hooks: - - id: ruff-ci - name: ruff-ci - entry: ruff check . - args: [ --output-format, text, --no-fix] - language: system - types_or: [python] - require_serial: true # run once for all files - stages: [manual] + - id: ruff-ci + name: ruff-ci + entry: ruff check . + args: [ --config, pyproject.toml, --output-format, text, --no-fix] + language: system + types_or: [python] + require_serial: true # run once for all files + stages: [manual] - repo: local hooks: - id: black