From 2254a72f87514d5a5991bf80ad5748bb4b9038ee Mon Sep 17 00:00:00 2001 From: Dan Fuchs Date: Mon, 9 Feb 2026 15:21:48 -0600 Subject: [PATCH] Ignore new lint that warns to use async filesystem ops --- project_templates/fastapi_safir_app/example-uws/ruff-shared.toml | 1 + project_templates/fastapi_safir_app/example/ruff-shared.toml | 1 + .../fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml | 1 + project_templates/square_pypi_package/example/ruff-shared.toml | 1 + .../square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml | 1 + 5 files changed, 5 insertions(+) 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 ed6e4dc6..7eaeb24b 100644 --- a/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml @@ -33,6 +33,7 @@ ignore = [ "ARG003", # unused class method arguments are often legitimate "ARG005", # unused lambda arguments are often legitimate "ASYNC109", # many async functions use asyncio.timeout internally + "ASYNC240", # we don't want to run filesystem operations on threads "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse "D102", # sometimes we use docstring inheritence diff --git a/project_templates/fastapi_safir_app/example/ruff-shared.toml b/project_templates/fastapi_safir_app/example/ruff-shared.toml index ed6e4dc6..7eaeb24b 100644 --- a/project_templates/fastapi_safir_app/example/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example/ruff-shared.toml @@ -33,6 +33,7 @@ ignore = [ "ARG003", # unused class method arguments are often legitimate "ARG005", # unused lambda arguments are often legitimate "ASYNC109", # many async functions use asyncio.timeout internally + "ASYNC240", # we don't want to run filesystem operations on threads "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse "D102", # sometimes we use docstring inheritence 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 ed6e4dc6..7eaeb24b 100644 --- a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml @@ -33,6 +33,7 @@ ignore = [ "ARG003", # unused class method arguments are often legitimate "ARG005", # unused lambda arguments are often legitimate "ASYNC109", # many async functions use asyncio.timeout internally + "ASYNC240", # we don't want to run filesystem operations on threads "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse "D102", # sometimes we use docstring inheritence diff --git a/project_templates/square_pypi_package/example/ruff-shared.toml b/project_templates/square_pypi_package/example/ruff-shared.toml index ed6e4dc6..7eaeb24b 100644 --- a/project_templates/square_pypi_package/example/ruff-shared.toml +++ b/project_templates/square_pypi_package/example/ruff-shared.toml @@ -33,6 +33,7 @@ ignore = [ "ARG003", # unused class method arguments are often legitimate "ARG005", # unused lambda arguments are often legitimate "ASYNC109", # many async functions use asyncio.timeout internally + "ASYNC240", # we don't want to run filesystem operations on threads "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse "D102", # sometimes we use docstring inheritence diff --git a/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml b/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml index ed6e4dc6..7eaeb24b 100644 --- a/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml +++ b/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml @@ -33,6 +33,7 @@ ignore = [ "ARG003", # unused class method arguments are often legitimate "ARG005", # unused lambda arguments are often legitimate "ASYNC109", # many async functions use asyncio.timeout internally + "ASYNC240", # we don't want to run filesystem operations on threads "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse "D102", # sometimes we use docstring inheritence