Skip to content

Commit 15df7a7

Browse files
committed
ignore D415 only in errors.py and __init__.py
1 parent c4a213b commit 15df7a7

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

fishjam/_ws_notifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Notifier listening to WebSocket events"""
1+
"""Notifier listening to WebSocket events."""
22

33
import asyncio
44
import inspect
@@ -49,7 +49,7 @@ def __init__(
4949
self._notification_handler: NotificationHandler | None = None
5050

5151
def on_server_notification(self, handler: NotificationHandler):
52-
"""Decorator used for defining handler for Fishjam Notifications"""
52+
"""Decorator used for defining handler for Fishjam Notifications."""
5353
self._notification_handler = handler
5454
return handler
5555

fishjam/agent/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class AgentError(Exception):
2-
"""Base exception class for all agent exceptions"""
2+
"""Base exception class for all agent exceptions."""
33

44

55
class AgentAuthError(AgentError):
6-
"""Agent failed to authenticate properly"""
6+
"""Agent failed to authenticate properly."""
77

88
def __init__(self, reason: str):
99
self.reason = reason

fishjam/api/_fishjam_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Fishjam client used to manage rooms"""
1+
"""Fishjam client used to manage rooms."""
22

33
from dataclasses import dataclass, field
44
from typing import Any, Literal, cast

pyproject.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,16 @@ build-backend = "hatchling.build"
6969

7070
[tool.ruff.lint]
7171
select = ["W", "I", "F", "E", "D"]
72-
ignore = [
73-
"D100",
74-
"D101",
75-
"D102",
76-
"D103",
77-
"D104",
78-
"D105",
79-
"D107",
80-
"D415", # """@private""" would not be allowed
81-
]
72+
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D107"]
8273

8374
[tool.ruff.lint.pydocstyle]
8475
convention = "google"
8576

8677
[tool.ruff.lint.extend-per-file-ignores]
8778
"fishjam/_openapi_client/**" = ["E501", "D"]
8879
"fishjam/events/_protos/**" = ["D"]
89-
"fishjam/errors.py" = ["D419"]
80+
"fishjam/errors.py" = ["D415", "D419"]
81+
"**/__init__.py" = ["D415"]
9082
"tests/**" = ["D"]
9183
"scripts.py" = ["D"]
9284

0 commit comments

Comments
 (0)