Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.mypy_cache/
.pytest_cache/
.vscode/
.idea/
*.pyc
Expand Down
1 change: 0 additions & 1 deletion piccolo_api/fastapi/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def __init__(

self.alias = f"{piccolo_crud.table._meta.tablename}__{id(self)}"

global ANNOTATIONS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep this - we need to make sure the global ANNOTATIONS are updated. Is it causing mypy errors? If so, lets ignore the error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put a noqa comment next to it.

ANNOTATIONS[self.alias]["ModelIn"] = self.ModelIn
ANNOTATIONS[self.alias]["ModelOut"] = self.ModelOut
ANNOTATIONS[self.alias]["ModelOptional"] = self.ModelOptional
Expand Down
12 changes: 6 additions & 6 deletions requirements/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black==24.3.0
isort==5.13.2
twine==5.0.0
mypy==1.9.0
black==25.1.0
isort==6.0.1
twine==6.1.0
mypy==1.15.0
pip-upgrader==1.4.15
wheel==0.43.0
setuptools==70.0.0
wheel==0.46.1
setuptools==80.8.0
6 changes: 3 additions & 3 deletions requirements/doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Sphinx==7.2.6
piccolo-theme==0.21.0
sphinx-autobuild==2024.2.4
Sphinx==8.3.0
piccolo-theme==0.24.0
sphinx-autobuild==2024.10.3
6 changes: 3 additions & 3 deletions requirements/e2e-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==8.0.1
playwright==1.41.2
pytest-playwright==0.4.4
pytest==8.3.5
playwright==1.52.0
pytest-playwright==0.7.0
2 changes: 1 addition & 1 deletion requirements/extras/cryptography.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cryptography==43.0.1
cryptography==45.0.2
12 changes: 6 additions & 6 deletions requirements/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest==8.1.1
requests==2.32.0
uvicorn==0.29.0
pytest-cov==5.0.0
flake8==7.0.0
pytest==8.3.5
requests==2.32.3
uvicorn==0.34.2
pytest-cov==6.1.1
flake8==7.2.0
piccolo[postgres,sqlite]>=1.0.0
moto==4.2.14
moto==5.1.4
8 changes: 4 additions & 4 deletions tests/media/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import boto3
from botocore import UNSIGNED
from botocore.config import Config
from moto import mock_s3
from moto import mock_aws
from piccolo.columns.column_types import Array, Varchar
from piccolo.table import Table

Expand Down Expand Up @@ -39,7 +39,7 @@ def test_store_file(self, get_client: MagicMock, uuid_module: MagicMock):
bucket_name = "bucket123"
folder_name = "movie_posters"

with mock_s3():
with mock_aws():
s3 = boto3.resource("s3", region_name="us-east-1")
s3.create_bucket(Bucket=bucket_name)

Expand Down Expand Up @@ -142,7 +142,7 @@ def test_unsigned(self, get_client: MagicMock, uuid_module: MagicMock):
bucket_name = "bucket123"
folder_name = "movie_posters"

with mock_s3():
with mock_aws():
s3 = boto3.resource("s3", region_name="us-east-1")
s3.create_bucket(Bucket=bucket_name)

Expand Down Expand Up @@ -206,7 +206,7 @@ def test_no_folder(self, get_client: MagicMock, uuid_module: MagicMock):
)
bucket_name = "bucket123"

with mock_s3():
with mock_aws():
s3 = boto3.resource("s3", region_name="us-east-1")
s3.create_bucket(Bucket=bucket_name)

Expand Down