From a71f5086c3ff58287b6a4059a2527d255d2b2bea Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 19 Feb 2024 08:19:48 -0800 Subject: [PATCH] Small fixes to FastAPI project template Remove a duplicate Ruff diagnostic exclusion. Remove the now-obsolete dependencies.yaml workflow job from the rendered example. --- .../.github/workflows/dependencies.yaml | 33 ------------------- .../fastapi_safir_app/example/pyproject.toml | 1 - .../{{cookiecutter.name}}/pyproject.toml | 1 - .../technote_md/testn-000/technote.toml | 2 +- .../technote_rst/testn-000/technote.toml | 2 +- 5 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 project_templates/fastapi_safir_app/example/.github/workflows/dependencies.yaml diff --git a/project_templates/fastapi_safir_app/example/.github/workflows/dependencies.yaml b/project_templates/fastapi_safir_app/example/.github/workflows/dependencies.yaml deleted file mode 100644 index 96075c90..00000000 --- a/project_templates/fastapi_safir_app/example/.github/workflows/dependencies.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Dependency Update - -"on": - schedule: - - cron: "0 12 * * 1" - workflow_dispatch: {} - -jobs: - update: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v3 - - - name: Run neophile - uses: lsst-sqre/run-neophile@v1 - with: - python-version: "3.11" - mode: pr - types: pre-commit - app-id: ${{ secrets.NEOPHILE_APP_ID }} - app-secret: ${{ secrets.NEOPHILE_PRIVATE_KEY }} - - - name: Report status - if: always() - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: "failure" - notification_title: "Periodic dependency update for {repo} failed" - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} diff --git a/project_templates/fastapi_safir_app/example/pyproject.toml b/project_templates/fastapi_safir_app/example/pyproject.toml index 6bdf28e0..37404905 100644 --- a/project_templates/fastapi_safir_app/example/pyproject.toml +++ b/project_templates/fastapi_safir_app/example/pyproject.toml @@ -112,7 +112,6 @@ ignore = [ "ARG005", # unused lambda arguments are often legitimate "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse - "COM812", # omitting trailing commas allows black autoreformatting "D102", # sometimes we use docstring inheritence "D104", # don't see the point of documenting every package "D105", # our style doesn't require docstrings for magic methods diff --git a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml index 7c1dff56..212dfe81 100644 --- a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml +++ b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml @@ -112,7 +112,6 @@ ignore = [ "ARG005", # unused lambda arguments are often legitimate "BLE001", # we want to catch and report Exception in background tasks "C414", # nested sorted is how you sort by multiple keys with reverse - "COM812", # omitting trailing commas allows black autoreformatting "D102", # sometimes we use docstring inheritence "D104", # don't see the point of documenting every package "D105", # our style doesn't require docstrings for magic methods diff --git a/project_templates/technote_md/testn-000/technote.toml b/project_templates/technote_md/testn-000/technote.toml index 7c8b0073..959afab7 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-02-13T00:26:39Z +date_created = 2024-02-19T16:20:40Z 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 ddfbee4f..9f0b4017 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-02-13T00:26:39Z +date_created = 2024-02-19T16:20:40Z organization.name = "Vera C. Rubin Observatory" organization.ror = "https://ror.org/048g3cy84" license.id = "CC-BY-4.0"