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

cloudinit: minor pylint fixes #360

Merged
merged 3 commits into from
May 14, 2020
Merged

cloudinit: minor pylint fixes #360

merged 3 commits into from
May 14, 2020

Conversation

OddBloke
Copy link
Collaborator

We recently discovered that pylint is failing to report some errors when
invoked across our entire codebase (see
pylint-dev/pylint#3611). I've run pylint across
every Python file under cloudinit/[0], and this commit fixes the issues
so-discovered.

[0] find cloudinit/ -name "*.py" | xargs -n 1 -t .tox/pylint/bin/python -m pylint

@@ -16,6 +16,13 @@
"(choose from 'list', 'autoinstall', 'devices', 'debug')\n")


# The tests in this module call helper methods which are decorated with
# mock.patch. pylint doesn't understand that mock.patch passes in parameters
Copy link
Contributor

Choose a reason for hiding this comment

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

I think instead of passes in parameters should be passes its parameters or something like that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it should actually be "passes parameters" (so the whole fragment is "mock.patch passes parameters to the decorated function"), let me fix that.

We recently discovered that pylint is failing to report some errors when
invoked across our entire codebase (see
pylint-dev/pylint#3611).  I've run pylint across
every Python file under cloudinit/[0], and this commit fixes the issues
so-discovered.

[0] find cloudinit/ -name "*.py" | xargs -n 1 -t .tox/pylint/bin/python -m pylint
Copy link
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

LGTM!

@OddBloke OddBloke merged commit 09492b1 into canonical:master May 14, 2020
@OddBloke OddBloke deleted the pylint branch May 14, 2020 21:46
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