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

FIX - Pylint issues part one #161

Merged
merged 1 commit into from
Oct 10, 2019
Merged

FIX - Pylint issues part one #161

merged 1 commit into from
Oct 10, 2019

Conversation

carlwilson
Copy link
Member

  • removed unused imports;
  • replaced unused variables with _;
  • removed unnecessary brackets and use of (object) in class declarations; and
  • added some missing DocStrings.

- removed unused `imports`;
- replaced unused variables with `_`;
- removed unnecessary brackets and use of `(object)` in class declarations; and
- added some missing DocStrings.
@carlwilson carlwilson added the bug A product defect that needs fixing label Oct 10, 2019
@carlwilson carlwilson added this to the v1.4.0-m4 milestone Oct 10, 2019
@carlwilson carlwilson requested a review from ablwr October 10, 2019 10:43
@carlwilson carlwilson self-assigned this Oct 10, 2019
Copy link
Contributor

@ablwr ablwr left a comment

Choose a reason for hiding this comment

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

Question about the test_package.py changes, otherwise some good improvements towards readability

@@ -1,7 +1,4 @@
import os
import zipfile

import pytest
Copy link
Contributor

Choose a reason for hiding this comment

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

Is pytest not required for the assert style syntax below, and zipfile for the ZipPackage namespace?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not in this case, only a native Python assert statement is used and here it is running on Travis: https://travis-ci.org/openpreserve/fido/jobs/596043501#L455 This also means that the code is optimised away in some circumstances but its fine for testing.

@carlwilson carlwilson merged commit 553a722 into master Oct 10, 2019
@carlwilson carlwilson deleted the fix/pylint-issues branch October 10, 2019 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants