Skip to content

Commit 8183f0a

Browse files
authored
Update _fishjam_client docstrings (#56)
* update _fishjam_client docstrings * fix too long lines * update ruff * linter * ignore D419 for errors.py * ignore D415 only in errors.py and __init__.py * bump ruff to 0.12 and add DOC rule
1 parent 461b8ea commit 8183f0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+361
-287
lines changed

examples/selective_subscription/selective_subscription/app.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ async def create_peer(request: Request) -> Response:
2929

3030
peer, token = room_service.create_peer()
3131

32-
return JSONResponse(
33-
{
34-
"peer_id": peer.id,
35-
"token": token,
36-
"room_name": room_name,
37-
"peer_name": peer_name,
38-
}
39-
)
32+
return JSONResponse({
33+
"peer_id": peer.id,
34+
"token": token,
35+
"room_name": room_name,
36+
"peer_name": peer_name,
37+
})
4038
except Exception as e:
4139
return JSONResponse({"error": str(e)}, status_code=500)
4240

fishjam/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
.. include:: ../README.md
3-
"""
1+
""".. include:: ../README.md"""
42

53
# pylint: disable=locally-disabled, no-name-in-module, import-error
64

fishjam/_openapi_client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
""" A client library for accessing Fishjam Media Server """
1+
"""A client library for accessing Fishjam Media Server"""
2+
23
from .client import AuthenticatedClient, Client
34

45
__all__ = (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains methods for accessing the API """
1+
"""Contains methods for accessing the API"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains endpoint functions for accessing the API """
1+
"""Contains endpoint functions for accessing the API"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains endpoint functions for accessing the API """
1+
"""Contains endpoint functions for accessing the API"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains endpoint functions for accessing the API """
1+
"""Contains endpoint functions for accessing the API"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Contains endpoint functions for accessing the API """
1+
"""Contains endpoint functions for accessing the API"""

fishjam/_openapi_client/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Contains shared errors types that can be raised from API functions """
1+
"""Contains shared errors types that can be raised from API functions"""
22

33

44
class UnexpectedStatus(Exception):

fishjam/_openapi_client/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Contains all the data models used in inputs/outputs """
1+
"""Contains all the data models used in inputs/outputs"""
22

33
from .add_peer_body import AddPeerBody
44
from .error import Error

0 commit comments

Comments
 (0)