Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Configuration definition."""

from __future__ import annotations

from pydantic import Field, SecretStr
from pydantic_settings import SettingsConfigDict
from safir.logging import LogLevel, Profile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Domain models for example-uws."""

from __future__ import annotations

from pydantic import BaseModel

__all__ = ["WorkerExampleuwsModel"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
the arq worker definition. Only this module is allowed to use stack packages.
"""

from __future__ import annotations

import os
from datetime import timedelta

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Worker for UWS database updates."""

from __future__ import annotations

import structlog
from safir.logging import configure_logging

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Test fixtures for example-uws tests."""

from __future__ import annotations

from collections.abc import AsyncGenerator, Iterator
from datetime import timedelta

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the exampleuws.handlers.external module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the exampleuws.handlers.internal module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Configuration definition."""

from __future__ import annotations

from pydantic import Field, SecretStr
from pydantic_settings import BaseSettings, SettingsConfigDict
from safir.logging import LogLevel, Profile
Expand Down
2 changes: 0 additions & 2 deletions project_templates/fastapi_safir_app/example/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Test fixtures for example tests."""

from __future__ import annotations

from collections.abc import AsyncGenerator

import pytest_asyncio
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the example.handlers.external module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the example.handlers.internal module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Configuration definition."""

from __future__ import annotations

from pydantic import Field, SecretStr
from pydantic_settings import {% if cookiecutter.flavor != "UWS" %}BaseSettings, {% endif %}SettingsConfigDict
from safir.logging import LogLevel, Profile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{%- if cookiecutter.flavor == "UWS" -%}
"""Domain models for {{ cookiecutter.name }}."""

from __future__ import annotations

from pydantic import BaseModel

__all__ = ["Worker{{ cookiecutter.module_name | capitalize }}Model"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{%- if cookiecutter.flavor == "UWS" -%}
"""Worker for UWS database updates."""

from __future__ import annotations

import structlog
from safir.logging import configure_logging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
the arq worker definition. Only this module is allowed to use stack packages.
"""

from __future__ import annotations

import os
from datetime import timedelta

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Test fixtures for {{ cookiecutter.name }} tests."""

from __future__ import annotations

from collections.abc import AsyncGenerator{% if cookiecutter.flavor == "UWS" %}, Iterator
from datetime import timedelta
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the {{ cookiecutter.module_name }}.handlers.external module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for the {{ cookiecutter.module_name }}.handlers.internal module and routes."""

from __future__ import annotations

import pytest
from httpx import AsyncClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Test the packaging."""

from __future__ import annotations

from example import __version__


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Test the packaging."""

from __future__ import annotations

from {{cookiecutter.module_name}} import __version__


Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_md/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 2026-01-05T23:56:12Z
date_created = 2026-01-06T22:26:18Z
organization.name = "NSF-DOE Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_rst/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 2026-01-05T23:56:12Z
date_created = 2026-01-06T22:26:18Z
organization.name = "NSF-DOE Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down