Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

add travis stuff #3

Merged
merged 16 commits into from
Jun 28, 2017
Merged

add travis stuff #3

merged 16 commits into from
Jun 28, 2017

Conversation

DeNeutoy
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@ff78b09). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #3   +/-   ##
=========================================
  Coverage          ?   61.93%           
=========================================
  Files             ?       35           
  Lines             ?     1395           
  Branches          ?        0           
=========================================
  Hits              ?      864           
  Misses            ?      531           
  Partials          ?        0

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 ff78b09...98fdc75. Read the comment docs.

@DeNeutoy
Copy link
Contributor Author

@matt-gardner I chose to just disable the invalid-sequence-index pylint bug for some of the type hints, because ideally we should upgrade to pylint=1.7.x once this bug pylint-dev/pylint#1507 is fixed (the invalid-sequence-index bug is fixed, but that link is a big problem because we use type hints so heavily).

@DeNeutoy DeNeutoy requested a review from matt-gardner June 27, 2017 19:48
@@ -24,7 +24,7 @@ def write(self, message):
# correctly, so we'll just make sure that each batch shows up on its one line.
if '\x08' in message:
message = message.replace('\x08', '')
if len(message) == 0 or message[-1] != '\n':
if message or message[-1] != '\n':
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one should be if not message or message[-1] != '\n':.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks

@@ -210,20 +210,18 @@ def add_token_to_namespace(self, token: str, namespace: str='tokens') -> int:
self._token_to_index[namespace][token] = index
self._index_to_token[namespace][index] = token
return index
else:
return self._token_to_index[namespace][token]
return self._token_to_index[namespace][token]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I disagree with pylint on the readability of this particular error message, and I'm tempted to disable it. It's not a strong opinion, though - what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep agreed, i'll disable it.

Copy link
Contributor

Choose a reason for hiding this comment

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

You should disable it in .pylintrc, not inline, by the way, in case you didn't know you could do that.

@DeNeutoy DeNeutoy merged commit 8d03ef7 into allenai:master Jun 28, 2017
@DeNeutoy DeNeutoy deleted the travis-setup branch June 28, 2017 17:43
chmod +x miniconda.sh && ./miniconda.sh -b -f
conda update --yes conda
# If we are running pylint, use Python 3.5.2 due to
# bug in pylint. https://github.com/PyCQA/pylint/issues/1295
Copy link
Contributor

Choose a reason for hiding this comment

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

hope you don't mind me interjecting, but this issue is fixed so you should be able to just use python 3.5.3... (no need to create two envs). I could be wrong, though.

Copy link
Contributor

Choose a reason for hiding this comment

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

@nelson-liu, your comments are always welcome. Thanks for the reminder - we just upgraded pylint, so yeah, we should have updated that too.

@woyijkl1 woyijkl1 mentioned this pull request Jan 21, 2019
dirkgr pushed a commit to dirkgr/allennlp that referenced this pull request Dec 11, 2019
@viking-sudo-rm viking-sudo-rm mentioned this pull request Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants