Skip to content

Commit 3b8e5e2

Browse files
authored
Increase Python version range and other improvements (#9)
* Expand Python version support to 3.13 - Increased supported Python versions to <3.14 in pyproject.toml and uv.lock. - Updated Makefile to run tests for Python 3.11, 3.12, and 3.13. - Removed .isort.cfg and mypy.ini config files, moving mypy settings to pyproject.toml. * Move to mature py3.13 for development * Bump the CI python versions
1 parent 101aa6f commit 3b8e5e2

File tree

7 files changed

+392
-30
lines changed

7 files changed

+392
-30
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ['3.10']
17+
python-version: ['3.13']
1818

1919
steps:
2020
- name: Checkout the repository
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
40-
python-version: ['3.9','3.10']
40+
python-version: ['3.9','3.10', '3.11', '3.12', '3.13']
4141
# Set environment variables
4242
steps:
4343
- name: Checkout the repository

.isort.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.13

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
.PHONY: isort black flake8 mypy
1+
.PHONY: lint mypy test
22

33
lint:
44
uv run --python 3.10 --extra dev ruff check . --fix
55
uv run --python 3.10 --extra dev ruff format .
6+
mypy .
67

78
mypy:
89
uv run --python 3.10 --extra dev mypy fastapi_asyncpg
910

1011
test:
1112
uv run --python 3.9 --extra test pytest tests
1213
uv run --python 3.10 --extra test pytest tests
14+
uv run --python 3.11 --extra test pytest tests
15+
uv run --python 3.12 --extra test pytest tests
16+
uv run --python 3.13 --extra test pytest tests

mypy.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "fastapi_asyncpg"
77
version = "1.0.1"
88
description = "FastAPI integration for asyncpg"
99
readme = "README.md"
10-
requires-python = ">=3.9,<3.11"
10+
requires-python = ">=3.9,<3.14"
1111
license = {text = "MIT"}
1212
authors = [
1313
{name = "Jordi collell", email = "jordic@gmail.com"}
@@ -63,6 +63,8 @@ line-ending = "auto"
6363

6464
[tool.mypy]
6565
namespace_packages = true
66+
ignore_missing_imports = true
67+
follow_imports = "skip"
6668

6769
[tool.pytest.ini_options]
6870
asyncio_mode = "auto"

uv.lock

Lines changed: 381 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)