Fix access-member-before-definition pylint errors

This commit is contained in:
Philipp Hörist 2019-04-07 21:50:33 +02:00
parent b91b64997e
commit b54aba4d3e
2 changed files with 2 additions and 3 deletions

View File

@ -1158,7 +1158,7 @@ class GroupchatControl(ChatControlBase):
if self.form_widget:
self.form_widget.hide()
self.form_widget.destroy()
self.btn_box.destroy()
self.btn_box.destroy() # pylint: disable=access-member-before-definition
self.form_widget = DataFormWidget(event.form)

View File

@ -1,13 +1,12 @@
#!/bin/sh
PYLINT=${PYLINT:-pylint}
"$PYLINT" --disable=C0103,C0302,C0301,C0330,E0203,E0401,E0611,E0710,E0712,E1101,E1133,E1136,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0603,W0613 "$@"
"$PYLINT" --disable=C0103,C0302,C0301,C0330,E0401,E0611,E0710,E0712,E1101,E1133,E1136,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0603,W0613 "$@"
# C0103 invalid-name
# C0301 line-too-long
# C0302 too-many-lines
# C0330 bad-continuation
# E0203 access-member-before-definition
# E0401 import-error
# E0611 no-name-in-module
# E0710 raising-non-exception - GLib.GError is not recognized