Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure modules and add documentation #3546

Merged
merged 86 commits into from
Jul 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
a532599
Use standard code blocks instead of `>>>` codeblocks
patrick91 Jun 10, 2024
2b774eb
Test with PEP 727
patrick91 Jun 10, 2024
ebcf7be
Rename type module to strawberry_type
patrick91 Jun 13, 2024
6855262
Add docs for strawberry.type/input/interface
patrick91 Jun 13, 2024
cb78124
Lazy type docs
patrick91 Jun 14, 2024
08b9ae9
Initial doc for the schema
patrick91 Jun 14, 2024
2526640
Initial docs for schema
patrick91 Jun 14, 2024
3e93f4e
Markdown
patrick91 Jun 14, 2024
c4b366a
Move example in class' docstring
patrick91 Jun 14, 2024
cf2f4a6
Docs for strawberry.argument
patrick91 Jun 16, 2024
6b03359
Docs for directives
patrick91 Jun 16, 2024
d03e696
Document enums
patrick91 Jun 17, 2024
79d0461
Test
patrick91 Jun 17, 2024
b9c5792
Document field, mutation and subscription
patrick91 Jun 17, 2024
ea6ad0d
Fix
patrick91 Jun 17, 2024
dde29e6
Document BasePermission
patrick91 Jun 17, 2024
41f63b2
Document info
patrick91 Jun 17, 2024
e8ce787
Fix typo
patrick91 Jun 17, 2024
a2cadb1
Test
patrick91 Jun 18, 2024
d7f01ae
Module docstring
patrick91 Jun 18, 2024
ade2f22
Use proper code block
patrick91 Jun 18, 2024
1ea3ae5
Move auto to types module
patrick91 Jun 22, 2024
d0495b8
Move enum to types module
patrick91 Jun 22, 2024
88af9b1
Update doc for Private
patrick91 Jun 23, 2024
d7a54a5
Move private to types module
patrick91 Jun 23, 2024
4ea8f98
Move union to types module
patrick91 Jun 23, 2024
06c2a7e
Move lazy_type to types module
patrick91 Jun 23, 2024
4fa56c0
Move unset to types module
patrick91 Jun 23, 2024
8aa828f
Move custom scalar to types module as just scalar
patrick91 Jun 23, 2024
1672b30
Test google style strings
patrick91 Jun 23, 2024
213dcfa
Fix typo
patrick91 Jun 23, 2024
7951513
Test
patrick91 Jun 23, 2024
2cf82d2
Fix case
patrick91 Jun 23, 2024
7177fa5
Revert "Test"
patrick91 Jun 23, 2024
dcd55ed
Initial conversion to google docs style
patrick91 Jun 23, 2024
f765e61
Use google docstrings
patrick91 Jun 23, 2024
0562d82
Add docs for auto
patrick91 Jun 29, 2024
eeb1175
ID doc
patrick91 Jun 29, 2024
cf39d70
Fix some typos
patrick91 Jun 29, 2024
8f33339
Fix typo
patrick91 Jun 29, 2024
97ae521
Test
patrick91 Jun 29, 2024
72afab9
T
patrick91 Jun 29, 2024
d4493ad
Unset
patrick91 Jun 29, 2024
2006f1b
Add __all__ in aiohttp
patrick91 Jun 30, 2024
4e4a890
s/python3/python
patrick91 Jun 30, 2024
abb8798
More all
patrick91 Jun 30, 2024
c248eeb
Query depth
patrick91 Jun 30, 2024
4329d3a
Various changes for doc
patrick91 Jun 30, 2024
53d2cae
Last >>>
patrick91 Jul 1, 2024
0b22a29
Ruff google style
patrick91 Jul 1, 2024
3ac49d6
Parameters to args
patrick91 Jul 1, 2024
48137bc
Move object types to types
patrick91 Jul 1, 2024
e953212
WIP
patrick91 Jul 1, 2024
a9d87bb
Fix
patrick91 Jul 1, 2024
40be586
Field -> types + codemod
patrick91 Jul 5, 2024
e800b55
Same for mutation
patrick91 Jul 5, 2024
9b2ba50
Update snaps
patrick91 Jul 5, 2024
7e4f1de
Argument
patrick91 Jul 5, 2024
5112137
More renames
patrick91 Jul 5, 2024
5176bf6
Raise error if unable to parse JSON
patrick91 Jul 5, 2024
be5baff
Fix?
patrick91 Jul 5, 2024
33db1aa
Some type fixes
patrick91 Jul 5, 2024
5a15a4e
Update test
patrick91 Jul 5, 2024
1333169
__all__ (almost) everywhere
patrick91 Jul 6, 2024
bb66a76
Apply suggestions from code review
patrick91 Jul 15, 2024
4bc4ba2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
6a8177b
Add test
patrick91 Jul 15, 2024
17bb9c4
types.types to types.base
patrick91 Jul 15, 2024
392778c
Update codemod
patrick91 Jul 15, 2024
2f2dc6b
Apply suggestions from code review
patrick91 Jul 15, 2024
239a98e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
0a305fc
Apply suggestions from code review
patrick91 Jul 15, 2024
bfd4010
Apply suggestions from code review
patrick91 Jul 16, 2024
0632502
Apply suggestions from code review
patrick91 Jul 16, 2024
e554bd8
Update codemod
patrick91 Jul 16, 2024
8e1fe7d
Fix codemod and add more changes
patrick91 Jul 16, 2024
569ecdf
Add release file
patrick91 Jul 17, 2024
af44f06
Update TWEET.md
patrick91 Jul 17, 2024
5aaace6
Check for libcst
patrick91 Jul 17, 2024
a5cfb54
Some mypy fixes
patrick91 Jul 17, 2024
9ef4fe7
Shorter tweet
patrick91 Jul 17, 2024
d2b0bed
Happy mypy?
patrick91 Jul 17, 2024
67c18d8
Ignore some errors for now
patrick91 Jul 17, 2024
7d0f6c1
Pyright update change
patrick91 Jul 17, 2024
e7880aa
Merge branch 'main' into feature/docstring
patrick91 Jul 17, 2024
846c0f8
Add breaking changes file
patrick91 Jul 17, 2024
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
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Jonathan Ehwald <[email protected]>
  • Loading branch information
patrick91 and DoctorJohn authored Jul 16, 2024
commit 0632502b95ef7adef18ae6d3d2fb0a583ea3eb27
6 changes: 3 additions & 3 deletions strawberry/channels/testing.py
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ class GraphQLWebsocketCommunicator(WebsocketCommunicator):
```python
import pytest
from strawberry.channels.testing import GraphQLWebsocketCommunicator
from myapp.asgi import application.
from myapp.asgi import application


@pytest.fixture
@@ -80,7 +80,7 @@ def __init__(
protocol: currently this supports `graphql-transport-ws` only.
connection_params: a dictionary of connection parameters to send to the server.
headers: a list of tuples to be sent as headers to the server.
subprotocols: a list of subprotocols to be sent to the server.
subprotocols: an ordered list of preferred subprotocols to be sent to the server.
**kwargs: additional arguments to be passed to the `WebsocketCommunicator` constructor.
"""
self.protocol = protocol
@@ -159,7 +159,7 @@ async def subscribe(
return

def process_errors(self, errors: List[GraphQLFormattedError]) -> List[GraphQLError]:
"""Reconst a GraphQLError from a FormattedGraphQLError."""
"""Reconstructs a GraphQLError from a FormattedGraphQLError."""
result = []
for f_error in errors:
error = GraphQLError(
Loading