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

Adopt pylint 2.6.0 update #387

Merged
merged 4 commits into from
Aug 27, 2020
Merged

Conversation

lukpueh
Copy link
Member

@lukpueh lukpueh commented Aug 24, 2020

Fixes issue #:
None

Description of the changes being introduced by the pull request:
Each commit addresses a separate pylint warning. See commit messages for details.

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

bad-whitespace was removed in 2.6.0, with the suggestion to use
black instead.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
bad-continuation was removed in 2.6.0, with the suggestion to use
black instead.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
Allow Python 2 style calls of super() with arguments, by disabling
the corresponding pylint check, added in pylint 2.6.0.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
Versions 2.6.0 and later of pylint adhere to PEP 3134
and trigger a 'raise-missing-from' warning (W0707) when
chained exceptions are raised implicitly.

The 'from' keyword is a Python3.x feature, that is why
six.raise_from is used for Python2.x compatibility.

Kudos to @sechkova and @jku for showing how to do this
(theupdateframework/python-tuf#1116).

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
Copy link
Member

@adityasaky adityasaky left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @lukpueh!

cc @kristelfung you'll have to rebase to incorporate these changes to avoid the linter failure in your PR. 😄

@adityasaky adityasaky merged commit 55acb5d into in-toto:develop Aug 27, 2020
@lukpueh lukpueh mentioned this pull request Nov 10, 2020
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.

2 participants