Skip to content

cloudinit: fix tip-pylint failures and bump pinned pylint version#478

Merged
blackboxsw merged 1 commit into
canonical:masterfrom
OddBloke:pylint
Jul 6, 2020
Merged

cloudinit: fix tip-pylint failures and bump pinned pylint version#478
blackboxsw merged 1 commit into
canonical:masterfrom
OddBloke:pylint

Conversation

@OddBloke
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke commented Jul 3, 2020

Specifically:

  • disable E1102 in cloudinit/sources/helpers/openstack.py for reasons
    described in a comment, and
  • refactor util.abs_join to require at least one positional argument; this
    matches os.path.join's signature, and that mismatch is what was
    causing pylint to emit a warning
  • bump to pylint 2.4.2

@paride
Copy link
Copy Markdown
Contributor

paride commented Jul 3, 2020

Glad that my email brought to some actual improvements, even if my conclusion on the errors being false positive was wrong :)

Just a question: why bumping pylint to 2.4.2 and not to the latest version (2.5.3)?

@OddBloke
Copy link
Copy Markdown
Collaborator Author

OddBloke commented Jul 3, 2020

Glad that my email brought to some actual improvements, even if my conclusion on the errors being false positive was wrong :)

One of them was, and the other is pretty subtle!

Just a question: why bumping pylint to 2.4.2 and not to the latest version (2.5.3)?

Haha, because the latest version of astroid is 2.4.2 and I misremembered that as the latest pylint version. Let me fix that!

Specifically:

* disable E1102 in cloudinit/sources/helpers/openstack.py for reasons
  described in a comment, and
* refactor `abs_join` to require at least one positional argument; this
  matches os.path.join's signature, and that mismatch is what was
  causing pylint to emit a warning
* bump to pylint 2.4.2
@OddBloke
Copy link
Copy Markdown
Collaborator Author

OddBloke commented Jul 3, 2020

Haha, because the latest version of astroid is 2.4.2 and I misremembered that as the latest pylint version. Let me fix that!

Done.

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.

4 participants