-
Notifications
You must be signed in to change notification settings - Fork 2
[CPP-58] Add pylint support for PySide2 imports #23
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
Conversation
Removes inline comments to avoid PySide2 imports being ignored. Also re-enables some pylint rules that do not need to be disabled.
In Rust 2021, panic messages must be a string literal.
from PySide2.QtWidgets import QApplication # type: ignore # pylint: disable=no-name-in-module | ||
from PySide2.QtWidgets import QApplication # type: ignore | ||
|
||
from fbs_runtime.application_context.PySide2 import ApplicationContext # type: ignore # pylint: disable=unused-import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@john-michaelburke we don't use this anymore so we should be able to remove this import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silverjam We still need the fbs_runtime import as it is needed when building the installer. Here is the error provided when commented out.
jm@ubuntu:~/dev/console_pp$ ./target/swift_navigation_console/swift_navigation_console
Traceback (most recent call last):
File "fbs_pyinstaller_hook.py", line 2, in <module>
File "importlib/__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'fbs_runtime'
[71539] Failed to execute script fbs_pyinstaller_hook
jm@ubuntu:~/dev/console_pp$
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just add a comment about why it's there then?
No description provided.