-
Notifications
You must be signed in to change notification settings - Fork 908
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
Update linters and adapt code for compatibility (SC-986) #1434
Conversation
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.
One comment inline, but otherwise LGTM. There's a CI failure though.
@@ -209,6 +209,7 @@ def handle_hotplug(hotplug_init: Init, devpath, subsystem, udevaction): | |||
success_fn=hotplug_init._write_to_cache, | |||
) # type: UeventHandler | |||
wait_times = [1, 3, 5, 10, 30] | |||
last_exception = Exception("Bug while processing hotplug event.") |
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.
We already have a #type: ignore
in the else clause for this particular issue. Lets either remove that hint with this change, or remove this change and add another linting hint.
The import happens only if setuptools.errors is not available.
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.
Thanks!
Changes: - pylint 2.13.8: fix E0601(used-before-assignment) - pylint 2.13.8: fix E4702(modified-iterating-dict) - pylint 2.13.8: silence W0402(deprecated-module) on distutils.errors - tox: bump linters versions
Proposed Commit Message
Additional Context
This should make the
cloud-init-style-tip
green.Test Steps
Checklist: