aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml8
-rw-r--r--slack.py5
2 files changed, 10 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 151d4fa..3c24b63 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,10 +26,16 @@ ignored-modules = ["weechat"]
[tool.pylint."messages control"]
disable = [
+ "dangerous-default-value", # inconvenient with types
+ "invalid-name",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
- "no-member",
+ "no-member", # incorrect reports
+ "protected-access", # covered by pyright
+ "too-few-public-methods", # too often bad advice
+ "too-many-arguments",
+ "too-many-instance-attributes",
]
[tool.pyright]
diff --git a/slack.py b/slack.py
index 460f355..3177fda 100644
--- a/slack.py
+++ b/slack.py
@@ -322,7 +322,7 @@ def task_runner(task: Task[Any], response: Any):
response = e.value
else:
if task.id in active_responses:
- raise Exception(
+ raise Exception( # pylint: disable=raise-missing-from
f"task.id in active_responses, {task.id}, {active_responses}"
)
if not task.final:
@@ -434,7 +434,8 @@ class SlackConfigSectionColor:
self.reaction_suffix = WeeChatOption(
self._section,
"reaction_suffix",
- "Color to use for the [:wave:(@user)] suffix on messages that have reactions attached to them.",
+ "Color to use for the [:wave:(@user)] suffix on messages that have "
+ "reactions attached to them.",
WeeChatColor("darkgray"),
)