From b97c7345035d011bcb2d954ef52c1e2c71fa5ea0 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 12 Sep 2024 12:04:15 -0700 Subject: [PATCH] Add another Ruff exclusion for Alembic Alembic upgrade and downgrade methods don't need docstrings. --- .../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 + project_templates/technote_md/testn-000/technote.toml | 2 +- project_templates/technote_rst/testn-000/technote.toml | 2 +- 7 files changed, 7 insertions(+), 2 deletions(-) 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 b5945cc4..aff2c6e5 100644 --- a/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example-uws/ruff-shared.toml @@ -89,6 +89,7 @@ select = ["ALL"] [lint.per-file-ignores] "alembic/**" = [ "INP001", # Alembic files are magical + "D103", # Alembic methods do not need docstrings "D400", # Alembic migrations have their own docstring format ] "noxfile.py" = [ diff --git a/project_templates/fastapi_safir_app/example/ruff-shared.toml b/project_templates/fastapi_safir_app/example/ruff-shared.toml index b5945cc4..aff2c6e5 100644 --- a/project_templates/fastapi_safir_app/example/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/example/ruff-shared.toml @@ -89,6 +89,7 @@ select = ["ALL"] [lint.per-file-ignores] "alembic/**" = [ "INP001", # Alembic files are magical + "D103", # Alembic methods do not need docstrings "D400", # Alembic migrations have their own docstring format ] "noxfile.py" = [ 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 b5945cc4..aff2c6e5 100644 --- a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml +++ b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml @@ -89,6 +89,7 @@ select = ["ALL"] [lint.per-file-ignores] "alembic/**" = [ "INP001", # Alembic files are magical + "D103", # Alembic methods do not need docstrings "D400", # Alembic migrations have their own docstring format ] "noxfile.py" = [ diff --git a/project_templates/square_pypi_package/example/ruff-shared.toml b/project_templates/square_pypi_package/example/ruff-shared.toml index b5945cc4..aff2c6e5 100644 --- a/project_templates/square_pypi_package/example/ruff-shared.toml +++ b/project_templates/square_pypi_package/example/ruff-shared.toml @@ -89,6 +89,7 @@ select = ["ALL"] [lint.per-file-ignores] "alembic/**" = [ "INP001", # Alembic files are magical + "D103", # Alembic methods do not need docstrings "D400", # Alembic migrations have their own docstring format ] "noxfile.py" = [ 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 b5945cc4..aff2c6e5 100644 --- a/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml +++ b/project_templates/square_pypi_package/{{cookiecutter.name}}/ruff-shared.toml @@ -89,6 +89,7 @@ select = ["ALL"] [lint.per-file-ignores] "alembic/**" = [ "INP001", # Alembic files are magical + "D103", # Alembic methods do not need docstrings "D400", # Alembic migrations have their own docstring format ] "noxfile.py" = [ diff --git a/project_templates/technote_md/testn-000/technote.toml b/project_templates/technote_md/testn-000/technote.toml index 2d2df720..17bc87fb 100644 --- a/project_templates/technote_md/testn-000/technote.toml +++ b/project_templates/technote_md/testn-000/technote.toml @@ -4,7 +4,7 @@ series_id = "TESTN" canonical_url = "https://testn-000.lsst.io" github_url = "https://github.com/lsst/testn-000" github_default_branch = "main" -date_created = 2024-09-12T17:26:16Z +date_created = 2024-09-12T19:04:13Z organization.name = "Vera C. Rubin Observatory" organization.ror = "https://ror.org/048g3cy84" license.id = "CC-BY-4.0" diff --git a/project_templates/technote_rst/testn-000/technote.toml b/project_templates/technote_rst/testn-000/technote.toml index 3c6e210a..3b136610 100644 --- a/project_templates/technote_rst/testn-000/technote.toml +++ b/project_templates/technote_rst/testn-000/technote.toml @@ -4,7 +4,7 @@ series_id = "TESTN" canonical_url = "https://testn-000.lsst.io" github_url = "https://github.com/lsst/testn-000" github_default_branch = "main" -date_created = 2024-09-12T17:26:16Z +date_created = 2024-09-12T19:04:13Z organization.name = "Vera C. Rubin Observatory" organization.ror = "https://ror.org/048g3cy84" license.id = "CC-BY-4.0"