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: fix tip-pylint failures and bump pinned pylint version #478

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

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