-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
remove noqa exceptions #6928
remove noqa exceptions #6928
Conversation
@@ -243,7 +243,7 @@ | |||
|
|||
try: | |||
# Import PubNub BLOCKS client. | |||
from pubnub_blocks_client import User, Account, Owner, Application, Keyset # noqa: F401, pylint: disable=unused-import | |||
from pubnub_blocks_client import User |
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.
These imports might be necessary to ensure a certain version of pubnub_blocks_client
. (These types are mentioned in Python docstrings and can eventually be converted to type hints.)
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.
Well, despite being published in PyPI, the pubnub_blocks_client
seems to have been discontinued. The last release was in 2017, and in its PyPI page the download link point to https://github.com/pubnub/pubnub-blocks-client/tarball/1.1.0 but not only that link fails, but the very project https://github.com/pubnub/pubnub-blocks-client/ is also a 404.
This module seems to be the evolution of: https://github.com/pubnub/pubnub-blocks-ansible/blob/master/module/pubnub_blocks.py
Apparently the official package now is https://pypi.org/project/pubnub/ but it has no description in PyPI, and its source is https://github.com/pubnub/python
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.
pubnub-blocks-client only have two versions released: 1.0.0 and 1.1.0, and the module requires >=1.0.0
. I think it is safe to remove those, and IMO this module should be in line for deprecation - at a later time, but not too late.
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.
The API URL seems to be responsive, but not sure about all the endpoints.
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6943 🤖 @patchback |
* remove noqa exceptions * add changelog frag * review from PR (cherry picked from commit 7050341)
@russoz thanks! |
* remove noqa exceptions * add changelog frag * review from PR
SUMMARY
Removed inline comments with noqa exceptions.
ISSUE TYPE
COMPONENT NAME
plugins/modules/gitlab_project_variable.py
plugins/modules/pubnub_blocks.py
plugins/modules/scaleway_security_group_rule.py
plugins/modules/xenserver_guest_info.py
plugins/modules/xenserver_guest_powerstate.py