tests/BACnet/bacnet_0@bacnet/bacnet_slave
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 13 Mar 2019 11:47:03 +0300
changeset 2537 eb4a4cc41914
parent 2254 3145dcffc6ed
permissions -rw-r--r--
Fix various pylint and pep8 errors

Check basic code-style problems for PEP-8
pep8 version: 2.4.0
./connectors/PYRO/__init__.py:57:43: E261 at least two spaces before inline comment
./connectors/SchemeEditor.py:29:21: E128 continuation line under-indented for visual indent
./controls/IDBrowser.py:101:23: E127 continuation line over-indented for visual indent
./controls/IDBrowser.py:102:23: E127 continuation line over-indented for visual indent

Check for problems using pylint ...
No config file found, using default configuration
pylint 1.9.4,
astroid 1.6.5
Python 2.7.16rc1 (default, Feb 18 2019, 11:05:09)
[GCC 8.2.0]
Use multiple threads for pylint
Using config file /home/developer/WorkData/PLC/beremiz/beremiz/.pylint
************* Module connectors.PYRO_dialog
connectors/PYRO_dialog.py:9: [W0611(unused-import), ] Unused import wx
************* Module connectors
connectors/__init__.py:32: [W1652(deprecated-types-field), ] Accessing a deprecated fields on the types module
connectors/__init__.py:32: [C0411(wrong-import-order), ] standard import "from types import ClassType" should be placed before "from connectors.ConnectorBase import ConnectorBase"
************* Module connectors.PYRO.PSK_Adapter
connectors/PYRO/PSK_Adapter.py:7: [C0411(wrong-import-order), ] standard import "import ssl" should be placed before "import sslpsk"
************* Module connectors.SchemeEditor
connectors/SchemeEditor.py:29: [C0330(bad-continuation), ] Wrong continued indentation (add 1 space).
wx.ALIGN_CENTER_VERTICAL),
^|
connectors/SchemeEditor.py:42: [W0631(undefined-loop-variable), SchemeEditor.__init__] Using possibly undefined loop variable 'tag'
************* Module runtime.WampClient
runtime/WampClient.py:138: [W1612(unicode-builtin), WampSession.onJoin] unicode built-in referenced
runtime/WampClient.py:154: [W1612(unicode-builtin), WampSession.publishWithOwnID] unicode built-in referenced
runtime/WampClient.py:346: [W1612(unicode-builtin), PublishEvent] unicode built-in referenced
runtime/WampClient.py:351: [W1612(unicode-builtin), PublishEventWithOwnID] unicode built-in referenced
runtime/WampClient.py:31: [W0611(unused-import), ] Unused str imported from builtins as text
************* Module runtime.PLCObject
runtime/PLCObject.py:35: [W1648(bad-python3-import), ] Module moved in Python 3
runtime/PLCObject.py:35: [C0411(wrong-import-order), ] standard import "import md5" should be placed before "from six.moves import xrange"
runtime/PLCObject.py:36: [C0411(wrong-import-order), ] standard import "from tempfile import mkstemp" should be placed before "from six.moves import xrange"
runtime/PLCObject.py:37: [C0411(wrong-import-order), ] standard import "import shutil" should be placed before "from six.moves import xrange"
runtime/PLCObject.py:38: [C0411(wrong-import-order), ] standard import "from functools import wraps, partial" should be placed before "from six.moves import xrange"
************* Module runtime.Worker
runtime/Worker.py:12: [W1648(bad-python3-import), ] Module moved in Python 3
************* Module runtime.spawn_subprocess
runtime/spawn_subprocess.py:125: [C0325(superfluous-parens), ] Unnecessary parens after 'print' keyword
runtime/spawn_subprocess.py:130: [C0325(superfluous-parens), ] Unnecessary parens after 'print' keyword
runtime/spawn_subprocess.py:125: [E1601(print-statement), ] print statement used
runtime/spawn_subprocess.py:130: [E1601(print-statement), ] print statement used
************* Module controls.IDBrowser
controls/IDBrowser.py:101: [C0330(bad-continuation), ] Wrong continued indentation (remove 5 spaces).
if self.isManager
| ^
controls/IDBrowser.py:102: [C0330(bad-continuation), ] Wrong continued indentation (remove 5 spaces).
else dv.DATAVIEW_CELL_INERT),
| ^
************* Module Beremiz_service
Beremiz_service.py:34: [W0611(unused-import), ] Unused import __builtin__
(dp0
S'BV_Obj'
p1
(lp2
sS'AV_Obj'
p3
(lp4
(dp5
S'loc'
p6
S'MD0_2'
p7
sS'Description'
p8
S''
p9
sS'Unit ID'
p10
I19
sS'Object Identifier'
p11
I0
sS'Ctype'
p12
S'float'
p13
sS'BACnetObjTypeID'
p14
I2
sS'Settable'
p15
S'Y'
p16
sS'Engineering Units'
p17
V(Energy) kilowatt-hours (19)
p18
sS'Object Name'
p19
VEnergyCounter
p20
sasS'AO_Obj'
p21
(lp22
(dp23
g6
S'QD0_1'
p24
sg8
V
p25
sS'Unit ID'
p26
I62
sS'Object Identifier'
p27
V0
p28
sg12
g13
sg14
I1
sg15
g16
sS'Object Name'
p29
VTemperatureSetPoint
p30
sS'Engineering Units'
p31
V(Temperature) degrees-celsius (62)
p32
sasS'MSI_Obj'
p33
(lp34
sS'BO_Obj'
p35
(lp36
(dp37
g6
S'QX0_4'
p38
sg8
g9
sS'Object Identifier'
p39
I2
sg12
S'uint8_t'
p40
sg14
I4
sg15
g16
sS'Object Name'
p41
VBlockClimateControl
p42
sasS'MSO_Obj'
p43
(lp44
sS'EDEfile_parm'
p45
(dp46
S'next_EDE_file_version'
p47
I1
ssS'BI_Obj'
p48
(lp49
(dp50
g6
S'IX0_3'
p51
sg8
g9
sS'Object Identifier'
p52
I0
sg12
g40
sg14
I3
sg15
S'N'
p53
sS'Object Name'
p54
VHeater
p55
sa(dp56
g6
g51
sg8
g9
sg52
I1
sg12
g40
sg14
I3
sg15
g53
sg54
VCooler
p57
sasS'AI_Obj'
p58
(lp59
(dp60
g6
S'ID0_0'
p61
sg8
VCurrent termperature in Beremiz lab
p62
sS'Unit ID'
p63
I62
sS'Object Identifier'
p64
I0
sg12
g13
sg14
I0
sg15
g53
sS'Engineering Units'
p65
V(Temperature) degrees-celsius (62)
p66
sS'Object Name'
p67
VTemperature
p68
sa(dp69
g6
g61
sg8
VCurrent humidity in Beremiz lab
p70
sg63
I29
sg64
I1
sg12
g13
sg14
I0
sg15
g53
sg67
VHumidity
p71
sg65
V(Humidity) percent-relative-humidity (29)
p72
sasS'MSV_Obj'
p73
(lp74
s.