Skip to content

Fix get_bam and get_primary_bam functions#150

Closed
tristanbrown wants to merge 2 commits intogenialis:masterfrom
tristanbrown:fixtests
Closed

Fix get_bam and get_primary_bam functions#150
tristanbrown wants to merge 2 commits intogenialis:masterfrom
tristanbrown:fixtests

Conversation

@tristanbrown
Copy link
Contributor

@codecov-io
Copy link

codecov-io commented Apr 12, 2018

Codecov Report

Merging #150 into master will decrease coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   68.54%   68.51%   -0.03%     
==========================================
  Files          49       49              
  Lines        3468     3468              
==========================================
- Hits         2377     2376       -1     
- Misses       1091     1092       +1
Impacted Files Coverage Δ
resdk/scripts/reads.py 0% <0%> (ø) ⬆️
resdk/scripts/sequp.py 0% <0%> (ø) ⬆️
resdk/resources/sample.py 66.66% <0%> (ø) ⬆️
resdk/resolwe.py 98.83% <100%> (ø) ⬆️
resdk/resources/data.py 100% <100%> (ø) ⬆️
resdk/resources/base.py 93.13% <100%> (ø) ⬆️
resdk/query.py 87.16% <100%> (ø) ⬆️
resdk/shortcuts/collection.py 25.16% <0%> (-0.65%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9542d5c...7271a95. Read the comment docs.

# pylint: disable=protected-access
if not isinstance(index, (slice,) + six.integer_types):
raise TypeError
if ((not isinstance(index, slice) and index < 0) or
Copy link
Member

Choose a reason for hiding this comment

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

Don't change the code, if the functionality stays the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm attempting to fix the Travis-CI test here. The tests started failing because of this change: PyCQA/pycodestyle#502
In this discussion on pycodestyle, they mention that W503 has been added to the default ignore list, and W504 will take precedence. However, in our Travis-CI tests, W503 is still reported as a failure. Is there a way to set up our .tox file so that certain ignored warnings are not reported as failures?

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I see. You have to argue such changes better and put a description in the commit message.

import yaml
# Needed because we mock requests in test_resolwe.py
from requests.exceptions import ConnectionError # pylint: disable=redefined-builtin
from six.moves.urllib.parse import urljoin # pylint: disable=import-error
Copy link
Member

Choose a reason for hiding this comment

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

Fix the problem instead of disabling the checker.

@tristanbrown
Copy link
Contributor Author

Superseded by #151

@tristanbrown tristanbrown deleted the fixtests branch August 9, 2018 19:45
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