beremiz

Conform to pep8 and pylint :

2019-04-07, Edouard Tisserant
8fb5c6eddc72
Conform to pep8 and pylint :

pep8 version: 2.3.1
./ConfigTreeNode.py:130:49: E231 missing whitespace after ','
./editors/Viewer.py:643:24: E128 continuation line under-indented for visual indent
./editors/Viewer.py:670:12: E221 multiple spaces before operator
./editors/Viewer.py:671:13: E221 multiple spaces before operator
./editors/Viewer.py:2138:52: E203 whitespace before ':'
./editors/Viewer.py:2139:66: W291 trailing whitespace
./controls/VariablePanel.py:154:25: E231 missing whitespace after ','
./controls/LocationCellEditor.py:88:1: W293 blank line contains whitespace
./controls/LocationCellEditor.py:191:25: E221 multiple spaces before operator
./controls/LocationCellEditor.py:200:17: E128 continuation line under-indented for visual indent

pylint 1.8.3,
************* Module controls.LocationCellEditor
controls/LocationCellEditor.py:200: [C0330(bad-continuation), ] Wrong continued indentation (add 9 spaces).
_("Selected location is identical to previous one"))
^ |
************* Module controls.VariablePanel
controls/VariablePanel.py:154: [E1601(print-statement), VariableTable.SetValue] print statement used
************* Module editors.Viewer
editors/Viewer.py:643: [C0330(bad-continuation), ] Wrong continued indentation (add 1 space).
self.GetAddMenuCallBack(self.AddNewComment))
^|
editors/Viewer.py:598: [W0612(unused-variable), Viewer.AddDivergenceMenuItems] Unused variable 'add_branch'
editors/Viewer.py:1655: [E0602(undefined-variable), Viewer.PopupConnectionMenu] Undefined variable 'variable_type'
editors/Viewer.py:1649: [W0612(unused-variable), Viewer.PopupConnectionMenu] Unused variable 'connection_type'
************* Module connectors.PYRO.PSK_Adapter
#
# Dockerfile for Beremiz
# This container is used to run tests for Beremiz
#
# To run test localy use following command executed from beremiz directory:
# $ docker run --volume=$PWD:/beremiz --workdir="/beremiz" --volume=$PWD/../CanFestival-3:/CanFestival-3 --memory=1g --entrypoint=/beremiz/tests/tools/check_source.sh skvorl/beremiz-requirements
#
FROM skvorl/python2.7-wxpython
MAINTAINER Andrey Skvortsov <andrej.skvortzov@gmail.com>
RUN set -xe \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
python-nevow \
python-lxml \
python-zeroconf \
python-m2crypto \
python-autobahn \
python-future \
python-simplejson \
&& apt-get install -y --no-install-recommends ca-certificates \
&& apt-get install -y --no-install-recommends wxglade python-cwiid \
&& apt-get install -y --no-install-recommends build-essential automake flex bison mercurial python-pip \
&& apt-get install -y --no-install-recommends \
pep8 \
pylint \
python-pytest \
python-pytest-timeout \
gettext \
python-ddt \
libpython2.7-dev \
\
&& apt-get install -y python3-pip \
&& pip3 install crossbar \
\
&& /usr/bin/pip install gnosis \
pyro \
sslpsk \
posix_spawn \
&& cd / \
&& hg clone http://dev.automforge.net/CanFestival-3 \
&& cd CanFestival-3 \
&& ./configure \
\
&& cd / \
&& hg clone -r 24ef30a9bcee1e65b027be2c7f7a8d52c41a7479 https://bitbucket.org/automforge/matiec \
&& cd matiec \
&& autoreconf -i \
&& ./configure \
&& make \
&& make install \
&& mkdir /usr/lib/matiec \
&& cp -vR lib/* /usr/lib/matiec \
&& rm -rf /matiec \
\
&& cd / \
&& hg clone https://bitbucket.org/mjsousa/modbus Modbus \
&& cd Modbus \
&& make \
\
&& cd / \
&& svn checkout https://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/ BACnet \
&& cd BACnet \
&& make MAKE_DEFINE='-fPIC' all \
\
&& apt-get remove -y bison flex automake python-pip python3-pip libpython2.7-dev \
&& apt-get autoremove -y \
&& apt-get clean -y \