From d7b09a86b1b6fbc557aaea40e9f742b0bcc38741 Mon Sep 17 00:00:00 2001 From: lukken <lukken@astron.nl> Date: Mon, 16 Jun 2025 10:19:36 +0200 Subject: [PATCH 1/4] Expand ruff rules to better match previous setup --- {{cookiecutter.project_slug}}/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index f9ef33d..eaba689 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -22,6 +22,10 @@ exclude = [ ] [tool.ruff.lint] +# Expand basic rules with name and style checks roughly equivalent to flake8 + black + pylint +# Some additional functional errors such as `await` on none async or wrong return types / args. +# More info https://docs.astral.sh/ruff/rules/ +select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET", "ARG"] ignore = ["E203"] [tool.tox] -- GitLab From 22c983b92b7422881ac4415b4af33bc47502ec4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Lukken?= <lukken@astron.nl> Date: Mon, 16 Jun 2025 11:44:10 +0200 Subject: [PATCH 2/4] Remove 'ARG' --- {{cookiecutter.project_slug}}/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index eaba689..099404c 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -25,7 +25,7 @@ exclude = [ # Expand basic rules with name and style checks roughly equivalent to flake8 + black + pylint # Some additional functional errors such as `await` on none async or wrong return types / args. # More info https://docs.astral.sh/ruff/rules/ -select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET", "ARG"] +select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET"] ignore = ["E203"] [tool.tox] -- GitLab From 637c65a2fafddc41ba38b6f5d30b63126c8a6391 Mon Sep 17 00:00:00 2001 From: lukken <lukken@astron.nl> Date: Tue, 17 Jun 2025 11:42:51 +0200 Subject: [PATCH 3/4] Reintroduce ARG --- {{cookiecutter.project_slug}}/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 099404c..eaba689 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -25,7 +25,7 @@ exclude = [ # Expand basic rules with name and style checks roughly equivalent to flake8 + black + pylint # Some additional functional errors such as `await` on none async or wrong return types / args. # More info https://docs.astral.sh/ruff/rules/ -select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET"] +select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET", "ARG"] ignore = ["E203"] [tool.tox] -- GitLab From 69a1469592bc855fd093ee40ac911d9289397b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Lukken?= <lukken@astron.nl> Date: Wed, 25 Jun 2025 12:04:12 +0200 Subject: [PATCH 4/4] Linting sort --- {{cookiecutter.project_slug}}/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index eaba689..3386de0 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -25,7 +25,7 @@ exclude = [ # Expand basic rules with name and style checks roughly equivalent to flake8 + black + pylint # Some additional functional errors such as `await` on none async or wrong return types / args. # More info https://docs.astral.sh/ruff/rules/ -select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET", "ARG"] +select = ["N", "A", "E", "F", "B", "W", "Q", "PL", "ASYNC", "S", "G", "RET", "ARG", "I"] ignore = ["E203"] [tool.tox] -- GitLab