Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I1101 E721 are newly enforced python code style #3732

Closed

Conversation

chunfuwen
Copy link
Contributor

I1101 E721 are newly enforced python code style
This cause multiple checking failure in currect codes, so disable them

@chunfuwen
Copy link
Contributor Author

inspekt checkall --disable-lint W,R,C,E0203,E0601,E1002,E1101,E1102,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs,scripts/github --no-license-check
PEP8 disabled: W605,W606,E501,E265,W601,E402,E722,E741
Pylint disabled: W,R,C,E0203,E0601,E1002,E1101,E1102,E1103,E1120,F0401,I0011,E1003,W605
Pylint enabled : W0611
License check: disabled
Python library autopep8 not installed. Please install it if you want to use --fix
/home/runner/work/avocado-vt/avocado-vt/virttest/utils_config.py:167:12: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Style: /home/runner/work/avocado-vt/avocado-vt/virttest/utils_config.py FAIL (FIX NOT OK)
Python library autopep8 not installed. Please install it if you want to use --fix
Style: /home/runner/work/avocado-vt/avocado-vt/virttest/utils_gdb.py FAIL (FIX NOT OK)
/home/runner/work/avocado-vt/avocado-vt/virttest/utils_gdb.py:102:12: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/utils_gdb.py:104:14: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Python library autopep8 not installed. Please install it if you want to use --fix
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1278:62: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Style: /home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py FAIL (FIX NOT OK)
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1282:15: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1290:52: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1310:15: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1332:11: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1413:19: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1593:28: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1613:26: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1681:40: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1684:31: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1687:28: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1799:36: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
/home/runner/work/avocado-vt/avocado-vt/virttest/cartesian_config.py:1815:32: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Python library autopep8 not installed. Please install it if you want to use --fix
/home/runner/work/avocado-vt/avocado-vt/virttest/unittest_utils/mock.py:59:16: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Style: /home/runner/work/avocado-vt/avocado-vt/virttest/unittest_utils/mock.py FAIL (FIX NOT OK)
Python library autopep8 not installed. Please install it if you want to use --fix
/home/runner/work/avocado-vt/avocado-vt/scripts/regression.py:238:16: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
Style: /home/runner/work/avocado-vt/avocado-vt/scripts/regression.py FAIL (FIX NOT OK)
************* Module avocado-vt.virttest.utils_net
I1101:3468,14: get_ip_address_by_interface: Module 'netifaces' has no 'AF_INET6' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:3471,14: get_ip_address_by_interface: Module 'netifaces' has no 'AF_INET' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:3474,15: get_ip_address_by_interface: Module 'netifaces' has no 'ifaddresses' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
************* Module avocado-vt.virttest.step_editor
I1101: 58,13: key_event_to_qemu_string: Module 'gtk.gdk' has no 'Keymap' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101: 61,14: key_event_to_qemu_string: Module 'gtk.gdk' has no 'keyval_name' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:114,21: key_event_to_qemu_string: Module 'gtk.gdk' has no 'CONTROL_MASK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:116,21: key_event_to_qemu_string: Module 'gtk.gdk' has no 'MOD1_MASK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:118,21: key_event_to_qemu_string: Module 'gtk.gdk' has no 'SHIFT_MASK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:128,22: StepMakerWindow.init: Module 'gtk' has no 'Window' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:128,33: StepMakerWindow.init: Module 'gtk' has no 'WINDOW_TOPLEVEL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:135,25: StepMakerWindow.init: Module 'gtk' has no 'VBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:139,16: StepMakerWindow.init: Module 'gtk' has no 'Frame' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:141,30: StepMakerWindow.init: Module 'gtk' has no 'SHADOW_NONE' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:145,25: StepMakerWindow.init: Module 'gtk' has no 'VBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:150,30: StepMakerWindow.init: Module 'gtk' has no 'ScrolledWindow' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:151,39: StepMakerWindow.init: Module 'gtk' has no 'POLICY_AUTOMATIC' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:152,39: StepMakerWindow.init: Module 'gtk' has no 'POLICY_AUTOMATIC' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:153,44: StepMakerWindow.init: Module 'gtk' has no 'SHADOW_NONE' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:157,16: StepMakerWindow.init: Module 'gtk' has no 'Table' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:162,25: StepMakerWindow.init: Module 'gtk' has no 'EventBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:163,49: StepMakerWindow.init: Module 'gtk' has no 'EXPAND' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:163,61: StepMakerWindow.init: Module 'gtk' has no 'EXPAND' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:168,21: StepMakerWindow.init: Module 'gtk' has no 'Image' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:173,25: StepMakerWindow.init: Module 'gtk' has no 'VBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:178,25: StepMakerWindow.init: Module 'gtk' has no 'VBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:183,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:187,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:191,32: StepMakerWindow.init: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:196,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:200,26: StepMakerWindow.init: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:207,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:211,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:215,29: StepMakerWindow.init: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:220,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:224,27: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:229,26: StepMakerWindow.init: Module 'gtk' has no 'SpinButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:230,21: StepMakerWindow.init: Module 'gtk' has no 'Adjustment' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:237,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:241,29: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:246,15: StepMakerWindow.init: Module 'gtk' has no 'VBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:250,36: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:255,36: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:260,37: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:264,36: StepMakerWindow.init: Module 'gtk' has no 'SpinButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:265,21: StepMakerWindow.init: Module 'gtk' has no 'Adjustment' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:271,38: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:276,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:280,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:284,16: StepMakerWindow.init: Module 'gtk' has no 'Frame' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:285,30: StepMakerWindow.init: Module 'gtk' has no 'SHADOW_IN' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:289,26: StepMakerWindow.init: Module 'gtk' has no 'TextView' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:291,38: StepMakerWindow.init: Module 'gtk' has no 'WRAP_WORD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:296,28: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:301,17: StepMakerWindow.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:307,14: StepMakerWindow.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:311,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:315,30: StepMakerWindow.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:319,31: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:323,32: StepMakerWindow.init: Module 'gtk' has no 'CheckButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:327,32: StepMakerWindow.init: Module 'gtk' has no 'SpinButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:328,21: StepMakerWindow.init: Module 'gtk' has no 'Adjustment' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:334,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:338,28: StepMakerWindow.init: Module 'gtk' has no 'SpinButton' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:339,21: StepMakerWindow.init: Module 'gtk' has no 'Adjustment' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:345,16: StepMakerWindow.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:365,14: StepMakerWindow.message: Module 'gtk' has no 'MessageDialog' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:366,32: StepMakerWindow.message: Module 'gtk' has no 'DIALOG_MODAL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:366,51: StepMakerWindow.message: Module 'gtk' has no 'DIALOG_DESTROY_WITH_PARENT' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:367,32: StepMakerWindow.message: Module 'gtk' has no 'MESSAGE_INFO' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:368,32: StepMakerWindow.message: Module 'gtk' has no 'BUTTONS_CLOSE' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:376,14: StepMakerWindow.question_yes_no: Module 'gtk' has no 'MessageDialog' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:377,32: StepMakerWindow.question_yes_no: Module 'gtk' has no 'DIALOG_MODAL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:377,51: StepMakerWindow.question_yes_no: Module 'gtk' has no 'DIALOG_DESTROY_WITH_PARENT' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:378,32: StepMakerWindow.question_yes_no: Module 'gtk' has no 'MESSAGE_QUESTION' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:379,32: StepMakerWindow.question_yes_no: Module 'gtk' has no 'BUTTONS_YES_NO' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:385,23: StepMakerWindow.question_yes_no: Module 'gtk' has no 'RESPONSE_YES' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:392,25: StepMakerWindow.inputdialog.inputdialog_entry_activated: Module 'gtk' has no 'RESPONSE_OK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:395,14: StepMakerWindow.inputdialog: Module 'gtk' has no 'MessageDialog' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:396,32: StepMakerWindow.inputdialog: Module 'gtk' has no 'DIALOG_MODAL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:396,51: StepMakerWindow.inputdialog: Module 'gtk' has no 'DIALOG_DESTROY_WITH_PARENT' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:397,32: StepMakerWindow.inputdialog: Module 'gtk' has no 'MESSAGE_QUESTION' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:398,32: StepMakerWindow.inputdialog: Module 'gtk' has no 'BUTTONS_OK_CANCEL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:404,16: StepMakerWindow.inputdialog: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:413,23: StepMakerWindow.inputdialog: Module 'gtk' has no 'RESPONSE_OK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:418,18: StepMakerWindow.filedialog: Module 'gtk' has no 'FileChooserDialog' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:419,47: StepMakerWindow.filedialog: Module 'gtk' has no 'FILE_CHOOSER_ACTION_OPEN' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:421,44: StepMakerWindow.filedialog: Module 'gtk' has no 'STOCK_CANCEL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:421,62: StepMakerWindow.filedialog: Module 'gtk' has no 'RESPONSE_CANCEL' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:421,83: StepMakerWindow.filedialog: Module 'gtk' has no 'STOCK_OPEN' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:422,44: StepMakerWindow.filedialog: Module 'gtk' has no 'RESPONSE_OK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:428,23: StepMakerWindow.filedialog: Module 'gtk' has no 'RESPONSE_OK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:546,35: StepMakerWindow.set_image: Module 'gtk.gdk' has no 'pixbuf_new_from_data' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:547,18: StepMakerWindow.set_image: Module 'gtk.gdk' has no 'COLORSPACE_RGB' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:751,8: StepMakerWindow.destroy: Module 'gtk' has no 'main_quit' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:762,21: StepMakerWindow.event_check_barrier_toggled: Module 'gtk.gdk' has no 'Cursor' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:762,36: StepMakerWindow.event_check_barrier_toggled: Module 'gtk.gdk' has no 'CursorType' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:905,20: StepEditor.init: Module 'gtk' has no 'UIManager' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:912,22: StepEditor.init: Module 'gtk' has no 'ActionGroup' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:916,21: StepEditor.init: Module 'gtk' has no 'STOCK_QUIT' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:918,21: StepEditor.init: Module 'gtk' has no 'STOCK_OPEN' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:920,25: StepEditor.init: Module 'gtk' has no 'STOCK_COPY' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:922,27: StepEditor.init: Module 'gtk' has no 'STOCK_DELETE' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:924,32: StepEditor.init: Module 'gtk' has no 'STOCK_ADD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:926,31: StepEditor.init: Module 'gtk' has no 'STOCK_ADD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:928,34: StepEditor.init: Module 'gtk' has no 'STOCK_ADD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:931,33: StepEditor.init: Module 'gtk' has no 'STOCK_ADD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:934,24: StepEditor.init: Module 'gtk' has no 'STOCK_DELETE' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:944,21: StepEditor.init.create_shortcut: Module 'gtk' has no 'Action' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:979,15: StepEditor.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:983,28: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:983,45: StepEditor.init: Module 'gtk' has no 'STOCK_GOTO_FIRST' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:989,27: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:989,44: StepEditor.init: Module 'gtk' has no 'STOCK_GO_BACK' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:994,26: StepEditor.init: Module 'gtk' has no 'Label' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:998,30: StepEditor.init: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1006,27: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1006,44: StepEditor.init: Module 'gtk' has no 'STOCK_GO_FORWARD' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1011,27: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1011,44: StepEditor.init: Module 'gtk' has no 'STOCK_GOTO_LAST' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1017,15: StepEditor.init: Module 'gtk' has no 'HBox' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1021,27: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1026,29: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1031,30: StepEditor.init: Module 'gtk' has no 'Button' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101:1156,8: StepEditor.quit: Module 'gtk' has no 'main_quit' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
************* Module key_event_form
I1101: 4,15: TestForm: Module 'gtk' has no 'Window' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101: 11,26: TestForm.init: Module 'gtk' has no 'WIN_POS_CENTER' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101: 13,16: TestForm.init: Module 'gtk' has no 'Fixed' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101: 15,16: TestForm.init: Module 'gtk' has no 'Entry' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
I1101: 20,32: TestForm.init: Module 'gtk' has no 'main_quit' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
************* Module cb
I1101: 59,16: main: Module 'gtk' has no 'clipboard_get' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.
Global check FAIL
I1101: 89,16: main: Module 'gtk' has no 'image_new_from_file' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects.


Your code has been rated at 10.00/10

make: *** [Makefile:49: check] Error 1
Error: Process completed with exit code 2.

Copy link
Contributor

@smitterl smitterl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to fix some of these but a lot more issues popped up. So, I agree with you @chunfuwen to disable these. Thank you!

@@ -46,7 +46,7 @@ requirements: pip
- $(PYTHON) -m pip install -r requirements.txt

check:
inspekt checkall --disable-lint W,R,C,E0203,E0601,E1002,E1101,E1102,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs,scripts/github --no-license-check
inspekt checkall --disable-lint W,R,C,E0203,E0601,E1002,E1101,E1102,E1103,E1120,F0401,I0011,E1003,W605,I1101 --disable-style W605,W606,E501,E265,W601,E402,E722,E741,E721 --exclude avocado-libs,scripts/github --no-license-check
pylint --errors-only --disable=all --enable=spelling --spelling-dict=en_US --spelling-private-dict-file=spell.ignore *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For E721 `do not compare types, for exact checks use is / is not, for instance checks use isinstance(), I think we can easily fix instead of disable. We already did the similar fix in tp-libvirt autotest/tp-libvirt#5066. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dzhengfy , fixing E721 issues, and leave I1101 unchecked now

@smitterl smitterl mentioned this pull request Aug 4, 2023
@chunfuwen chunfuwen force-pushed the disable_I1101_E721_check branch 6 times, most recently from c4121d1 to 34c4180 Compare August 4, 2023 13:28
This cause multiple checking failure in currect codes, so fix E721 issue and disable I1101

Signed-off-by: chunfuwen <[email protected]>
@dzhengfy
Copy link
Contributor

dzhengfy commented Aug 7, 2023

@chunfuwen As sebas's #3734 was ready for merging ealier than this one, so his pr was merged. Thanks for your understanding. Could you help close this one?

@chunfuwen chunfuwen closed this Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants