Skip to content

Commit

Permalink
improve pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mips2648 committed Apr 25, 2024
1 parent 1f577c3 commit bf0ef9f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[FORMAT]
max-line-length=240
5 changes: 4 additions & 1 deletion jeedomdaemon/aio_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@


class Listener():
"""This class allow to create an asyncio task that will open a socket server and listen to it until task is canceled. `on_message` call_back will be call with the message as a list as argument"""
"""
This class allow to create an asyncio task that will open a socket server and listen to it until task is canceled.
`on_message` call_back will be call with the message as a list as argument
"""
def __new__(cls, *args, **kwargs):
if not hasattr(cls, 'instance'):
cls.instance = super().__new__(cls)
Expand Down
2 changes: 2 additions & 0 deletions jeedomdaemon/base_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Module providing a base class to parse config of your daemon."""

from __future__ import annotations

import argparse
Expand Down
2 changes: 2 additions & 0 deletions jeedomdaemon/base_daemon.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Module providing a base class for your daemon."""

from __future__ import annotations

import logging
Expand Down

0 comments on commit bf0ef9f

Please sign in to comment.