Skip to content

cloudinit: minor pylint fixes#360

Merged
OddBloke merged 3 commits into
canonical:masterfrom
OddBloke:pylint
May 14, 2020
Merged

cloudinit: minor pylint fixes#360
OddBloke merged 3 commits into
canonical:masterfrom
OddBloke:pylint

Conversation

@OddBloke
Copy link
Copy Markdown
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



# 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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