From 1a00e52e845efa9a64d23c9de721e5bfddaa434c Mon Sep 17 00:00:00 2001 From: AlexNg Date: Sun, 28 Apr 2024 14:21:41 +0800 Subject: [PATCH 1/3] ci(lint): Fix linting not throwing --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c4a8fb8..03ff183 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -26,4 +26,4 @@ jobs: - name: Lint with ruff run: | set -xe - python -m ruff --per-file-ignores="__init__.py:F401" --per-file-ignores="__init__.py:E402" . + python -m ruff format --check From 0884bdadcca28f707770b7467e805d4669256e92 Mon Sep 17 00:00:00 2001 From: AlexNg Date: Sun, 28 Apr 2024 14:25:03 +0800 Subject: [PATCH 2/3] ci(lint): Install correct ruff version --- .github/workflows/linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 03ff183..47af1a1 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -21,7 +21,8 @@ jobs: - name: Install requirements run: | set -xe - python -m pip install ruff + python -m pip install poetry + python -m poetry install - name: Lint with ruff run: | From 81ad83578977120b9d57e46282bd216ac161e087 Mon Sep 17 00:00:00 2001 From: AlexNg Date: Sun, 28 Apr 2024 14:26:37 +0800 Subject: [PATCH 3/3] ci(lint): Run ruff through peotry --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 47af1a1..044a0b5 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -27,4 +27,4 @@ jobs: - name: Lint with ruff run: | set -xe - python -m ruff format --check + python -m poetry run ruff format --check