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

remove noqa exceptions #6928

Merged
merged 3 commits into from
Jul 15, 2023

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented Jul 14, 2023

SUMMARY

Removed inline comments with noqa exceptions.

ISSUE TYPE
  • Docs Pull Request
  • Refactoring Pull Request
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

@ansibullbot ansibullbot added docs module module plugins plugin (any type) labels Jul 14, 2023
@@ -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
Copy link
Collaborator

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.)

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 labels Jul 14, 2023
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jul 15, 2023
@felixfontein felixfontein merged commit 7050341 into ansible-collections:main Jul 15, 2023
@patchback
Copy link

patchback bot commented Jul 15, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/70503411ee7d02a262284dc3f8691d725ea4dba0/pr-6928

Backported as #6943

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 15, 2023
* remove noqa exceptions

* add changelog frag

* review from PR

(cherry picked from commit 7050341)
@felixfontein
Copy link
Collaborator

@russoz thanks!

@russoz russoz deleted the noqa-comments branch July 15, 2023 12:16
felixfontein pushed a commit that referenced this pull request Jul 15, 2023
remove noqa exceptions (#6928)

* remove noqa exceptions

* add changelog frag

* review from PR

(cherry picked from commit 7050341)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
valeriopoggi pushed a commit to valeriopoggi/community.general that referenced this pull request Jul 17, 2023
* remove noqa exceptions

* add changelog frag

* review from PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants