diff --git a/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml b/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml index 36d8097e..1ce4e294 100644 --- a/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml @@ -99,9 +99,11 @@ select = ["ALL"] ] "src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "*/src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "tests/**" = [ "C901", # tests are allowed to be complex, sometimes that's convenient diff --git a/project_templates/fastapi_safir_app/example/ruff-shared.toml b/project_templates/fastapi_safir_app/example/ruff-shared.toml index 36d8097e..1ce4e294 100644 --- a/project_templates/fastapi_safir_app/example/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example/ruff-shared.toml @@ -99,9 +99,11 @@ select = ["ALL"] ] "src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "*/src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "tests/**" = [ "C901", # tests are allowed to be complex, sometimes that's convenient diff --git a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml index 36d8097e..1ce4e294 100644 --- a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml @@ -99,9 +99,11 @@ select = ["ALL"] ] "src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "*/src/*/handlers/**" = [ "D103", # FastAPI handlers should not have docstrings + "PLR0917", # FastAPI injects handler arguments by keyword, not position ] "tests/**" = [ "C901", # tests are allowed to be complex, sometimes that's convenient