diff --git a/images/simulator/simulator.py b/images/simulator/simulator.py index 24181d2..6645574 100644 --- a/images/simulator/simulator.py +++ b/images/simulator/simulator.py @@ -1,5 +1,4 @@ -"""Modbus simulator -""" +"""Modbus simulator""" # See also example https://pymodbus.readthedocs.io/en/latest/source/example/updating_server.html import logging diff --git a/requirements.dev.txt b/requirements.dev.txt index 3b1cff4..f0a0aac 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,2 +1,2 @@ -black~=24.3.0 +black~=25.1.0 pylint~=3.1.0 \ No newline at end of file diff --git a/tedge_modbus/operations/c8y_coils.py b/tedge_modbus/operations/c8y_coils.py index dd47d35..94647ca 100644 --- a/tedge_modbus/operations/c8y_coils.py +++ b/tedge_modbus/operations/c8y_coils.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Cumulocity IoT c8y_Coils operation handler -""" +"""Cumulocity IoT c8y_Coils operation handler""" from .context import Context diff --git a/tedge_modbus/operations/c8y_modbus_configuration.py b/tedge_modbus/operations/c8y_modbus_configuration.py index e6a1df4..7a249d5 100644 --- a/tedge_modbus/operations/c8y_modbus_configuration.py +++ b/tedge_modbus/operations/c8y_modbus_configuration.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Cumulocity IoT ModbusConfiguration operation handler -""" +"""Cumulocity IoT ModbusConfiguration operation handler""" import json import logging import toml diff --git a/tedge_modbus/operations/c8y_modbus_device.py b/tedge_modbus/operations/c8y_modbus_device.py index afb3092..7bd69a2 100644 --- a/tedge_modbus/operations/c8y_modbus_device.py +++ b/tedge_modbus/operations/c8y_modbus_device.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Cumulocity IoT Modbus device operation handler -""" +"""Cumulocity IoT Modbus device operation handler""" import logging from dataclasses import dataclass import requests diff --git a/tedge_modbus/operations/c8y_registers.py b/tedge_modbus/operations/c8y_registers.py index af2f688..b99f0ec 100644 --- a/tedge_modbus/operations/c8y_registers.py +++ b/tedge_modbus/operations/c8y_registers.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Cumulocity IoT c8y_Registers operation handler -""" +"""Cumulocity IoT c8y_Registers operation handler""" from .context import Context diff --git a/tedge_modbus/operations/context.py b/tedge_modbus/operations/context.py index 8c0922a..342818b 100644 --- a/tedge_modbus/operations/context.py +++ b/tedge_modbus/operations/context.py @@ -1,5 +1,4 @@ -"""Operation context -""" +"""Operation context""" import subprocess from dataclasses import dataclass diff --git a/tedge_modbus/reader/banner.py b/tedge_modbus/reader/banner.py index 7cc61f0..fd70a7b 100644 --- a/tedge_modbus/reader/banner.py +++ b/tedge_modbus/reader/banner.py @@ -1,5 +1,4 @@ -"""Banner for cli friendly applications -""" +"""Banner for cli friendly applications""" # Generated using pyfiglet # import pyfiglet; BANNER = pyfiglet.figlet_format("Modbus plugin for thin-edge.io") diff --git a/tedge_modbus/reader/reader.py b/tedge_modbus/reader/reader.py index df1e9b4..6ec3475 100644 --- a/tedge_modbus/reader/reader.py +++ b/tedge_modbus/reader/reader.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Modbus reader -""" +"""Modbus reader""" import argparse import json import logging diff --git a/tedge_modbus/reader/smartresttemplates.py b/tedge_modbus/reader/smartresttemplates.py index ca43a27..3692856 100644 --- a/tedge_modbus/reader/smartresttemplates.py +++ b/tedge_modbus/reader/smartresttemplates.py @@ -1,5 +1,4 @@ -"""Cumulocity IoT SmartREST template definitions -""" +"""Cumulocity IoT SmartREST template definitions""" # pylint: disable=line-too-long SMARTREST_TEMPLATES = [