diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 3c02114..88ae1c1 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,5 +15,5 @@ jobs: ci: uses: community-of-python/community-workflow/.github/workflows/preset.yml@main with: - python-version: '["3.9","3.10","3.11","3.12","3.13"]' + python-version: '["3.10","3.11","3.12","3.13"]' secrets: inherit diff --git a/microbootstrap/instruments/health_checks_instrument.py b/microbootstrap/instruments/health_checks_instrument.py index 78b1f75..80fe33e 100644 --- a/microbootstrap/instruments/health_checks_instrument.py +++ b/microbootstrap/instruments/health_checks_instrument.py @@ -1,5 +1,4 @@ from __future__ import annotations -import typing import typing_extensions @@ -7,8 +6,8 @@ class HealthCheckTypedDict(typing_extensions.TypedDict, total=False): - service_version: typing.Optional[str] # noqa: UP045 (Litestar fails to build OpenAPI schema on Python 3.9) - service_name: typing.Optional[str] # noqa: UP045 (Litestar fails to build OpenAPI schema on Python 3.9) + service_version: str | None + service_name: str | None health_status: bool diff --git a/pyproject.toml b/pyproject.toml index 33300f6..904acb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "microbootstrap" description = "Package for bootstrapping new micro-services" readme = "README.md" -requires-python = ">=3.9,<4" +requires-python = ">=3.10,<4" keywords = [ "python", "microservice", @@ -23,7 +23,6 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -101,13 +100,13 @@ source = "vcs" [tool.mypy] plugins = ["pydantic.mypy"] files = ["microbootstrap", "tests"] -python_version = "3.9" +python_version = "3.10" strict = true pretty = true show_error_codes = true [tool.ruff] -target-version = "py39" +target-version = "py310" line-length = 120 [tool.ruff.format]