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
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- run: uv python install 3.12
- run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --all-extras --frozen --no-install-project
uv run ruff format . --check
uv run ruff check . --no-fix
Expand All @@ -46,11 +44,9 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
- run: uv python install 3.13
- run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --all-extras --frozen --no-install-project
uv run alembic upgrade head
uv run pytest . --cov=. --cov-report xml
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim
FROM python:3.13-slim

# required for psycopg2
RUN apt update \
Expand All @@ -19,7 +19,7 @@ WORKDIR /code
COPY pyproject.toml .
COPY uv.lock .

RUN uv sync --frozen --no-install-project
RUN uv sync --all-extras --frozen --no-install-project

COPY . .

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "litestar-sqlalchemy-template"
version = "0"
description = "Async template on LiteStar and SQLAlchemy 2"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.13"
authors = [
{ name = "Artur Shiriev", email = "[email protected]" },
]
Expand All @@ -17,7 +17,7 @@ dependencies = [
# database
"alembic",
"psycopg2",
"sqlalchemy",
"sqlalchemy[asyncio]",
"asyncpg",
]

Expand All @@ -37,7 +37,7 @@ dev = [
fix = true
unsafe-fixes = true
line-length = 120
target-version = "py312"
target-version = "py313"
extend-exclude = ["bin"]

[tool.ruff.lint]
Expand All @@ -64,7 +64,7 @@ isort.no-lines-before = ["standard-library", "local-folder"]
]

[tool.mypy]
python_version = "3.12"
python_version = "3.13"
strict = true
pretty = true

Expand Down
Loading
Loading