Skip to content

Commit 8faad28

Browse files
authored
Merge pull request #26 from reubenmiller/dev-update-black
dev: update black and code formatting
2 parents a084904 + d295211 commit 8faad28

File tree

10 files changed

+10
-19
lines changed

10 files changed

+10
-19
lines changed

images/simulator/simulator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Modbus simulator
2-
"""
1+
"""Modbus simulator"""
32

43
# See also example https://pymodbus.readthedocs.io/en/latest/source/example/updating_server.html
54
import logging

requirements.dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
black~=24.3.0
1+
black~=25.1.0
22
pylint~=3.1.0

tedge_modbus/operations/c8y_coils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Cumulocity IoT c8y_Coils operation handler
3-
"""
2+
"""Cumulocity IoT c8y_Coils operation handler"""
43
from .context import Context
54

65

tedge_modbus/operations/c8y_modbus_configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Cumulocity IoT ModbusConfiguration operation handler
3-
"""
2+
"""Cumulocity IoT ModbusConfiguration operation handler"""
43
import json
54
import logging
65
import toml

tedge_modbus/operations/c8y_modbus_device.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Cumulocity IoT Modbus device operation handler
3-
"""
2+
"""Cumulocity IoT Modbus device operation handler"""
43
import logging
54
from dataclasses import dataclass
65
import requests

tedge_modbus/operations/c8y_registers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Cumulocity IoT c8y_Registers operation handler
3-
"""
2+
"""Cumulocity IoT c8y_Registers operation handler"""
43
from .context import Context
54

65

tedge_modbus/operations/context.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Operation context
2-
"""
1+
"""Operation context"""
32

43
import subprocess
54
from dataclasses import dataclass

tedge_modbus/reader/banner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Banner for cli friendly applications
2-
"""
1+
"""Banner for cli friendly applications"""
32

43
# Generated using pyfiglet
54
# import pyfiglet; BANNER = pyfiglet.figlet_format("Modbus plugin for thin-edge.io")

tedge_modbus/reader/reader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Modbus reader
3-
"""
2+
"""Modbus reader"""
43
import argparse
54
import json
65
import logging

tedge_modbus/reader/smartresttemplates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Cumulocity IoT SmartREST template definitions
2-
"""
1+
"""Cumulocity IoT SmartREST template definitions"""
32

43
# pylint: disable=line-too-long
54
SMARTREST_TEMPLATES = [

0 commit comments

Comments
 (0)