From 731fb912cf291ff46673225a23f6a46327a216f8 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Mon, 10 Jun 2024 16:33:23 +0200 Subject: [PATCH 1/4] Simple Ruff tryout --- .github/workflows/ruff.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/workflows/ruff.yaml diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml new file mode 100644 index 000000000..c8a0958d7 --- /dev/null +++ b/.github/workflows/ruff.yaml @@ -0,0 +1,8 @@ +name: Ruff +on: [ push, pull_request ] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chartboost/ruff-action@v1 \ No newline at end of file From 5d5eefbdc3e9746ee3c0f80807ac6148629edc95 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Mon, 10 Jun 2024 16:42:26 +0200 Subject: [PATCH 2/4] Ignore test --- ruff.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 000000000..8f9a29974 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,2 @@ +[lint] +ignore = ["F401", "F405", "F841"] \ No newline at end of file From 3f47570e0d90b9448ae0c269539cb6a7687f9f7a Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Mon, 10 Jun 2024 16:45:30 +0200 Subject: [PATCH 3/4] Ignore test --- ruff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruff.toml b/ruff.toml index 8f9a29974..1d81c846f 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,2 +1,2 @@ [lint] -ignore = ["F401", "F405", "F841"] \ No newline at end of file +ignore = ["F401", "F403", "F405", "F541", "F821" , "F841", "E713", "E721", "E722", "E741"] \ No newline at end of file From 935b0a60f8c504ff70f71b81a87998923e760996 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Mon, 10 Jun 2024 16:53:32 +0200 Subject: [PATCH 4/4] `check --fix` test --- .github/workflows/ruff.yaml | 6 ++++-- ruff.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml index c8a0958d7..e6e07e9cb 100644 --- a/.github/workflows/ruff.yaml +++ b/.github/workflows/ruff.yaml @@ -1,8 +1,10 @@ -name: Ruff +name: Linting on: [ push, pull_request ] jobs: ruff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 \ No newline at end of file + - uses: chartboost/ruff-action@v1 + with: + args: check --fix \ No newline at end of file diff --git a/ruff.toml b/ruff.toml index 1d81c846f..ce0c1a544 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,2 +1,2 @@ [lint] -ignore = ["F401", "F403", "F405", "F541", "F821" , "F841", "E713", "E721", "E722", "E741"] \ No newline at end of file +#ignore = ["F401", "F403", "F405", "F541", "F821" , "F841", "E713", "E721", "E722", "E741"] \ No newline at end of file