Skip to content

Commit 4a7dca8

Browse files
authored
Pylint, check method parameter documentation. (#909)
Clean docparam in examples.
1 parent 5f2cf59 commit 4a7dca8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+228
-220
lines changed

doc/api/doxygen/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc
23
"""Doxygen API Builder."""
34
import os
45
import shutil

examples/common/callback_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc,missing-param-doc,differing-param-doc
23
"""Pymodbus Server With Callbacks.
34
45
This is an example of adding callbacks to a running modbus server

examples/common/custom_datablock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc,missing-param-doc,differing-param-doc
23
"""Pymodbus Server With Custom Datablock Side Effect.
34
45
This is an example of performing custom logic after a value has been

examples/common/custom_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc
23
"""Pymodbus Synchronous Client Examples.
34
45
The following is an example of how to use the synchronous modbus client

examples/common/custom_synchronous_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ def decode(self, data):
6060
# --------------------------------------------------------------------------- #
6161
# import the various server implementations
6262
# --------------------------------------------------------------------------- #
63-
from custom_message import CustomModbusRequest
64-
6563
from pymodbus.version import version
6664
from pymodbus.server.sync import StartTcpServer
6765
from pymodbus.device import ModbusDeviceIdentification
@@ -70,6 +68,7 @@ def decode(self, data):
7068
ModbusSlaveContext,
7169
ModbusServerContext,
7270
)
71+
from .custom_message import CustomModbusRequest # pylint: disable=relative-beyond-top-level
7372

7473
# --------------------------------------------------------------------------- #
7574
# configure the service logging

examples/common/dbstore_update_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=differing-param-doc,missing-any-param-doc
12
"""Pymodbus Server With Updating Thread.
23
34
This is an example of having a background thread updating the

examples/common/performance.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc
23
"""Pymodbus Performance Example.
34
45
The following is an quick performance check of the synchronous
@@ -52,8 +53,8 @@
5253
def single_client_test(n_host, n_cycles):
5354
"""Perform a single threaded test of a synchronous client against the specified host
5455
55-
:param host: The host to connect to
56-
:param cycles: The number of iterations to perform
56+
:param n_host: The host to connect to
57+
:param n_cycles: The number of iterations to perform
5758
"""
5859
logger = log_to_stderr()
5960
logger.setLevel(logging.WARNING)

examples/common/updating_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-any-param-doc,differing-param-doc
23
"""Pymodbus Server With Updating Thread.
34
45
This is an example of having a background thread updating the

examples/contrib/bcd_payload.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=missing-type-doc,missing-param-doc,differing-param-doc,missing-raises-doc,missing-any-param-doc
12
"""Modbus BCD Payload Builder.
23
34
This is an example of building a custom payload builder

examples/contrib/concurrent_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# pylint: disable=missing-type-doc,missing-param-doc,differing-param-doc
23
"""Concurrent Modbus Client.
34
45
This is an example of writing a high performance modbus client that allows

0 commit comments

Comments
 (0)