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

Add flake8 and mypy to Travis #86

Merged
merged 13 commits into from
Jan 21, 2020
Merged

Add flake8 and mypy to Travis #86

merged 13 commits into from
Jan 21, 2020

Conversation

wsanchez
Copy link
Contributor

@wsanchez wsanchez commented Nov 8, 2019

Travis isn't running flake8 or mypy. That seems a bit silly.

@wsanchez wsanchez self-assigned this Nov 8, 2019
@codecov-io
Copy link

codecov-io commented Nov 8, 2019

Codecov Report

Merging #86 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
- Coverage   98.53%   98.52%   -0.02%     
==========================================
  Files          10       10              
  Lines        1567     1556      -11     
  Branches      179      184       +5     
==========================================
- Hits         1544     1533      -11     
  Misses         12       12              
  Partials       11       11
Impacted Files Coverage Δ
src/hyperlink/test/common.py 100% <ø> (ø) ⬆️
src/hyperlink/test/test_decoded_url.py 100% <100%> (ø) ⬆️
src/hyperlink/test/test_url.py 99.81% <100%> (ø) ⬆️
src/hyperlink/_url.py 96.88% <100%> (-0.05%) ⬇️

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 c0fdc92...86a4736. Read the comment docs.

@wsanchez
Copy link
Contributor Author

Waiting on #82 before proceeding.

@wsanchez
Copy link
Contributor Author

Should probably also add docs, after #85

@wsanchez
Copy link
Contributor Author

wsanchez commented Dec 2, 2019

@glyph flake8 is catching an unused variable in a new test you added. Can you check on whether that's meant to be used to removed?

@wsanchez
Copy link
Contributor Author

wsanchez commented Dec 2, 2019

@glyph: attempted_rooted_replacement

@@ -1112,7 +1112,6 @@ def test_autorooted(self):

attempt_unrooted_absolute = URL(host="foo", path=['bar'], rooted=False)
normal_absolute = URL(host="foo", path=["bar"])
attempted_rooted_replacement = normal_absolute.replace(rooted=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@glyph: here

Copy link
Collaborator

Choose a reason for hiding this comment

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

weird. that's a real bug. we should be asserting something about that object

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 think that asserting something about that object is unrelated to this PR, though, and is an example of why landing this PR would be good :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how you want to address that. Can you open a PR with a fix or an issue to track it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reference, this came via #91

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I guess what I meant was I should have asserted something about that object :).

You can feel free to just clean it up here for the time being, and assign any resulting issue to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue #99 for replacing this.

@wsanchez wsanchez requested a review from glyph December 10, 2019 19:09
@wsanchez wsanchez removed the request for review from glyph December 29, 2019 22:32
Copy link
Member

@mahmoud mahmoud left a comment

Choose a reason for hiding this comment

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

Given the amount of type annotation now in master, and the now-green status, I think it's time to right the overdueness of this merge :) Great work!

@mahmoud mahmoud merged commit eb8bc08 into master Jan 21, 2020
@wsanchez wsanchez deleted the travis-lint branch January 25, 2020 22:39
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