mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 22:11:57 +00:00
Fix pylint warnings
This commit is contained in:
parent
810f6d5297
commit
28f09086a2
@ -1,9 +1,10 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from contextlib import suppress
|
||||
|
||||
from tfw.builtins.message_sender import MessageSender
|
||||
from tfw.event_handlers import FrontendEventHandlerBase
|
||||
|
||||
from .message_sender import MessageSender
|
||||
|
||||
|
||||
class FrontendEventHandler(FrontendEventHandlerBase):
|
||||
def __init__(self):
|
||||
|
@ -4,7 +4,7 @@
|
||||
import logging
|
||||
|
||||
from tfw.networking import Scope
|
||||
from tfw.event_handlers import FrontendEventHandlerBase, TFWServerUplinkConnector
|
||||
from tfw.event_handlers import FrontendEventHandlerBase
|
||||
from tfw.components import FileManager
|
||||
from tfw.components.inotify import InotifyObserver
|
||||
|
||||
|
@ -3,9 +3,8 @@
|
||||
|
||||
import logging
|
||||
|
||||
from os.path import dirname
|
||||
from tfw.networking import Scope
|
||||
from tfw.event_handlers import FrontendEventHandlerBase, TFWServerUplinkConnector
|
||||
from tfw.event_handlers import FrontendEventHandlerBase
|
||||
from tfw.components.inotify import InotifyObserver
|
||||
from tfw.mixins.supervisor_mixin import SupervisorLogMixin
|
||||
|
||||
@ -24,7 +23,7 @@ class LogInotifyObserver(InotifyObserver, SupervisorLogMixin):
|
||||
@property
|
||||
def process_name(self):
|
||||
return self._process_name
|
||||
|
||||
|
||||
@process_name.setter
|
||||
def process_name(self, process_name):
|
||||
self._process_name = process_name
|
||||
|
@ -9,7 +9,7 @@ from tempfile import TemporaryDirectory
|
||||
|
||||
import pytest
|
||||
|
||||
from file_manager import FileManager
|
||||
from .file_manager import FileManager
|
||||
|
||||
@dataclass
|
||||
class ManagerContext:
|
||||
|
@ -5,13 +5,11 @@ from pwd import getpwnam
|
||||
from grp import getgrnam
|
||||
from pathlib import Path
|
||||
from os import chown
|
||||
from os.path import dirname
|
||||
from re import findall
|
||||
from re import compile as compileregex
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from tfw.components.inotify import InotifyObserver
|
||||
from tfw.event_handlers import TFWServerUplinkConnector
|
||||
|
||||
|
||||
class HistoryMonitor(ABC, InotifyObserver):
|
||||
|
Loading…
Reference in New Issue
Block a user