diff --git a/databases/requirements.txt b/databases/requirements.txt index 45f30aad2..0a41c4017 100644 --- a/databases/requirements.txt +++ b/databases/requirements.txt @@ -1,7 +1,7 @@ # TODO: merge with other dev requirements -coverage==7.2.2 +coverage==7.2.5 syrupy==3.0.6 -dirty-equals==0.5.0 +dirty-equals==0.6.0 distro -r ../pipelines/requirements/deps/pyright.txt diff --git a/databases/tests/test_update.py b/databases/tests/test_update.py index c01617a09..98a3e36d2 100644 --- a/databases/tests/test_update.py +++ b/databases/tests/test_update.py @@ -84,18 +84,30 @@ async def test_update_with_create_disconnect( assert updated.posts is not None assert len(updated.posts) == 1 + post_id = updated.posts[0].id + if method == 'disconnect': - # pyright: reportOptionalSubscript=false updated = await client.user.update( where={'id': user_id}, - data={'posts': {'disconnect': [{'id': updated.posts[0].id}]}}, + data={ + 'posts': { + 'disconnect': [ + {'id': post_id}, + ] + } + }, include={'posts': True}, ) else: - # pyright: reportOptionalSubscript=false updated = await client.user.update( where={'id': user_id}, - data={'posts': {'delete': [{'id': updated.posts[0].id}]}}, + data={ + 'posts': { + 'delete': [ + {'id': post_id}, + ], + } + }, include={'posts': True}, ) diff --git a/pipelines/requirements/coverage.txt b/pipelines/requirements/coverage.txt index 799f63aec..f43474a8e 100644 --- a/pipelines/requirements/coverage.txt +++ b/pipelines/requirements/coverage.txt @@ -1 +1 @@ -coverage==7.2.2 +coverage==7.2.5 diff --git a/pipelines/requirements/deps/pyright.txt b/pipelines/requirements/deps/pyright.txt index 6928ec7f2..e84b01d3e 100644 --- a/pipelines/requirements/deps/pyright.txt +++ b/pipelines/requirements/deps/pyright.txt @@ -1 +1 @@ -pyright==1.1.302 +pyright==1.1.306 diff --git a/pipelines/requirements/deps/pytest.txt b/pipelines/requirements/deps/pytest.txt index c021c5b5b..c4d04a08d 100644 --- a/pipelines/requirements/deps/pytest.txt +++ b/pipelines/requirements/deps/pytest.txt @@ -1 +1 @@ -pytest==7.2.2 +pytest==7.3.1 diff --git a/pipelines/requirements/dev.txt b/pipelines/requirements/dev.txt index c9f6fe93a..b7ee5706a 100644 --- a/pipelines/requirements/dev.txt +++ b/pipelines/requirements/dev.txt @@ -3,7 +3,7 @@ wheel==0.40.0 blue==0.9.1 pre-commit==2.21.0 twine==4.0.2 -typer==0.7.0 +typer==0.9.0 rtoml==0.9.0 GitPython distro diff --git a/pipelines/requirements/docs.txt b/pipelines/requirements/docs.txt index 60bfc5a26..dacaaa5a1 100644 --- a/pipelines/requirements/docs.txt +++ b/pipelines/requirements/docs.txt @@ -1,2 +1,2 @@ -mkdocs==1.4.2 -mkdocs-material==9.1.5 +mkdocs==1.4.3 +mkdocs-material==9.1.9 diff --git a/pipelines/requirements/test.txt b/pipelines/requirements/test.txt index fddd7c75f..044dbebf2 100644 --- a/pipelines/requirements/test.txt +++ b/pipelines/requirements/test.txt @@ -2,7 +2,7 @@ -r deps/pytest-asyncio.txt -r deps/pytest.txt pytest-sugar -mock==5.0.1 +mock==5.0.2 pytest-mock==3.10.0 pytest-subprocess==1.5.0 syrupy==3.0.6 diff --git a/tests/test_generation/test_attributes.py b/tests/test_generation/test_attributes.py index fd43fc3e2..bcb4f0046 100644 --- a/tests/test_generation/test_attributes.py +++ b/tests/test_generation/test_attributes.py @@ -6,10 +6,9 @@ def test_field_map(testdir: Testdir) -> None: # NOTE: this just tests that map can be used with Prisma Client Python # prisma handles mapping for us def tests() -> None: # mark: filedef - # pyright: reportUnusedFunction = false, reportGeneralTypeIssues = false from prisma.models import User - def test_field_map() -> None: + def test_field_map() -> None: # pyright: ignore[reportUnusedFunction] """Correct model field name access""" user = User(id='1', my_field='bar', foo_field='baz') # type: ignore[call-arg] assert user.id == '1' diff --git a/tests/test_generation/test_partial_types.py b/tests/test_generation/test_partial_types.py index 529d78e3b..fb41ce814 100644 --- a/tests/test_generation/test_partial_types.py +++ b/tests/test_generation/test_partial_types.py @@ -83,18 +83,17 @@ def tests() -> None: # mark: filedef from pydantic import BaseModel from prisma import Base64 from prisma.partials import ( # type: ignore[attr-defined] - # pyright: reportGeneralTypeIssues = false - PostWithoutDesc, - PostOptionalPublished, - PostRequiredDesc, - PostOnlyId, - PostNoRelations, - PostOptionalInclude, - PostRequiredAuthor, - PostModifiedAuthor, - UserModifiedPosts, - UserBytesList, - PostNoRelationsAndExclude, + PostWithoutDesc, # pyright: ignore + PostOptionalPublished, # pyright: ignore + PostRequiredDesc, # pyright: ignore + PostOnlyId, # pyright: ignore + PostNoRelations, # pyright: ignore + PostOptionalInclude, # pyright: ignore + PostRequiredAuthor, # pyright: ignore + PostModifiedAuthor, # pyright: ignore + UserModifiedPosts, # pyright: ignore + UserBytesList, # pyright: ignore + PostNoRelationsAndExclude, # pyright: ignore ) base_fields = {