forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
267 lines (200 loc) · 6.59 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
[metadata]
name = pymodbus
version = attr: pymodbus.__version__
author = "Galen Collins, Jan Iversen"
maintainer = "dhoomakethu, janiversen"
license = BSD-3-Clause
platforms = 'Linux', 'Mac OS X', 'Win'
description = A fully featured modbus protocol stack in python
keywords = modbus, asyncio, scada, client, server, simulator
long_description = file: README.rst
url = https://github.com/pymodbus-dev/pymodbus/
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Framework :: AsyncIO
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: POSIX :: Linux
Operating System :: Unix
Operating System :: MacOS :: MacOS X
Operating System :: OS Independent
Operating System :: Microsoft
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: System :: Networking
Topic :: Utilities
project_urls =
Source Code = https://github.com/pymodbus-dev/pymodbus
Bug Reports = https://github.com/pymodbus-dev/pymodbus/issues
Docs: Dev = https://pymodbus.readthedocs.io/en/latest/?badge=latest
Discord = https://discord.gg/vcP8qAz2
[options]
packages = find:
include_package_data = True
zip_safe = True
python_requires = >=3.8.0
#install_requires --> setup.py
#extras_require --> setup.py
#cmdclass --> setup.py
[options.exclude_package_data]
'' =
examples
test
tools
doc
[options.entry_points]
console_scripts =
pymodbus.console = pymodbus.repl.client.main:main
pymodbus.server = pymodbus.repl.server.main:app
pymodbus.simulator = pymodbus.server.simulator.main:main
[options.packages.find]
include = pymodbus*
[pylint.master]
# Add files or directories matching the regex patterns to the ignore-list.
ignore-paths=
pymodbus/client/serial_asyncio,
doc
# Files or directories matching the regular expression patterns are skipped.
ignore-patterns=^\.#
# Pickle collected data for later comparisons.
persistent=no
# List of plugins
load-plugins=
pylint.extensions.bad_builtin,
pylint.extensions.check_elif,
pylint.extensions.code_style,
pylint.extensions.comparetozero,
pylint.extensions.comparison_placement,
pylint.extensions.confusing_elif,
pylint.extensions.docparams,
pylint.extensions.docstyle,
pylint.extensions.emptystring,
pylint.extensions.eq_without_hash,
pylint.extensions.for_any_all,
pylint.extensions.overlapping_exceptions,
pylint.extensions.private_import,
pylint.extensions.set_membership,
pylint.extensions.typing,
# NOT WANTED:
# pylint.extensions.mccabe, (replaced by ruff)
# pylint.extensions.broad_try_clause,
# pylint.extensions.consider_ternary_expression,
# pylint.extensions.empty_comment,
# pylint.extensions.redefined_variable_type,
# pylint.extensions.while_used,
# Use multiple processes to speed up Pylint, 0 will auto-detect.
jobs=0
# Minimum supported python version
py-version = 3.8
[pylint.messages_control]
# Enable/Disable the message/report/category/checker with the given id(s).
enable=all
disable=
duplicate-code, # TBD
file-ignored, # ONLY to be used with extreme care.
format, # NOT wanted, handled by black
locally-disabled, # NOT wanted
suppressed-message, # NOT wanted
[pylint.reports]
# Set the output format.
output-format=text
[pylint.logging]
# The type of string formatting that logging methods do.
logging-format-style=new
[pylint.similarities]
# Ignore imports when computing similarities.
ignore-imports=no
# Signatures are removed from the similarity computation
ignore-signatures=no
[pylint.variables]
# A regular expression matching the name of dummy variables
dummy-variables-rgx=
[pylint.format]
# Maximum number of lines in a module
max-module-lines=2000
[pylint.basic]
# Good variable names which should always be accepted.
good-names=i,j,k,rr,fc,rq,fd,x,_
# Regular expression matching correct attribute names.
attr-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
# Regular expression matching correct method names.
method-rgx=[a-z_][a-zA-Z0-9_]{2,}$
[pylint.design]
# Maximum number of arguments for function / method
max-args=10
# Maximum number of locals for function / method body
max-locals=25
# Maximum number of return / yield for function / method body
max-returns=11
# Maximum number of branch for function / method body
max-branches=27
# Maximum number of statements in function / method body
max-statements=100
# Maximum number of attributes for a class (see R0902).
max-attributes=20
# Maximum number of public methods for a class (see R0904).
max-public-methods=25
[pylint.classes]
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
[pylint.imports]
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=regsub,TERMIOS,Bastion,rexec
[pylint.exceptions]
# Exceptions that will emit a warning when being caught.
overgeneral-exceptions=builtins.Exception
[pylint.deprecated_builtins]
# List of builtins function names that should not be used.
bad-functions=map,input
[mypy]
strict_optional = False
exclude = pymodbus/client/base.py
# below are those used in HomeAssistant
show_error_codes = true
# follow_imports = silent
# ignore_missing_imports = true
local_partial_types = true
strict_equality = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
enable_error_code = ignore-without-code, redundant-self, truthy-iterable
disable_error_code = annotation-unchecked
strict_concatenate = false
# check_untyped_defs = true
# disallow_incomplete_defs = true
disallow_subclassing_any = true
# disallow_untyped_calls = true
disallow_untyped_decorators = true
# disallow_untyped_defs = true
# warn_return_any = true
warn_unreachable = true
[egg_info]
tag_svn_revision = false
[build-sphinx]
source-dir = doc/sphinx/
build-dir = doc/sphinx/build
all_files = 1
[upload_docs]
upload_dir = build/sphinx/html
[bdist_wheel]
[tool:pytest]
# log_cli = true
testpaths = test
addopts = -p no:warnings --dist loadgroup --numprocesses auto
asyncio_mode = auto
[coverage:run]
include =
pymodbus/
test/
omit =
test/TO_DO_REWRITE
examples/common/tornado_twister
examples/contrib/tornado_twister
[codespell]
skip=./doc/_build,./doc/source/_static,venv,.venv,.git,htmlcov,CHANGELOG.rst,.mypy_cache
ignore-words-list = asend