Skip to content

Commit e588a34

Browse files
committed
bump ruff to 0.12 and add DOC rule
1 parent 15df7a7 commit e588a34

38 files changed

Lines changed: 217 additions & 217 deletions

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/_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

fishjam/_openapi_client/models/add_peer_body.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ def to_dict(self) -> dict[str, Any]:
4444

4545
field_dict: dict[str, Any] = {}
4646
field_dict.update(self.additional_properties)
47-
field_dict.update(
48-
{
49-
"options": options,
50-
"type": type_,
51-
}
52-
)
47+
field_dict.update({
48+
"options": options,
49+
"type": type_,
50+
})
5351

5452
return field_dict
5553

0 commit comments

Comments
 (0)