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
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fastapi-sqlalchemy-template"
version = "0"
description = "Async template on FastAPI and SQLAlchemy 2"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.13"
authors = [
{ email = "[email protected]" },
{ name = "Artur Shiriev"}
Expand All @@ -18,7 +18,7 @@ dependencies = [
# database
"alembic",
"psycopg2",
"sqlalchemy",
"sqlalchemy[asyncio]",
"asyncpg",
]

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

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D1", # allow missing docstrings
"FBT", # allow boolean args
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"INP", # ignore flake8-no-pep420
"B008", # function-call-in-default-argument
"ANN204", # no typings for __init__
Expand All @@ -66,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 All @@ -81,4 +79,4 @@ exclude_also = [
]

[tool.coverage.run]
concurrency = ["thread","greenlet"]
concurrency = ["thread", "greenlet"]
Loading