Skip to content

type annotate plugin tests #593

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

Merged
merged 8 commits into from
Jun 28, 2020
Merged

type annotate plugin tests #593

merged 8 commits into from
Jun 28, 2020

Conversation

rkm
Copy link
Contributor

@rkm rkm commented Jun 27, 2020

this finishes-off the test annotations and closes #15! I also refactored-out the mock_config function that was duplicated in a few places -- hope that's ok.

I was having trouble running pre-commit through tox locally, so ended up missing black & flake8 in my commits until the end -- you may want to squash-merge.

@codecov
Copy link

codecov bot commented Jun 27, 2020

Codecov Report

Merging #593 into master will increase coverage by 0.04%.
The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
+ Coverage   79.05%   79.10%   +0.04%     
==========================================
  Files          13       13              
  Lines        2053     2053              
  Branches      293      293              
==========================================
+ Hits         1623     1624       +1     
+ Misses        322      321       -1     
  Partials      108      108              
Impacted Files Coverage Δ
src/bandersnatch_storage_plugins/swift.py 70.89% <50.00%> (+0.13%) ⬆️
src/bandersnatch/filter.py 100.00% <100.00%> (ø)
src/bandersnatch/storage.py 71.42% <100.00%> (ø)

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 86fc2a8...5a91f04. Read the comment docs.

@rkm rkm marked this pull request as ready for review June 27, 2020 19:00
Copy link
Contributor

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

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

Thanks for removing the duplicate code! This is awesome.

@cooperlees
Copy link
Contributor

Would love to know why tox was unable to run pre-commit or work - What was the error? can you open an issue?

@cooperlees cooperlees merged commit cf19246 into pypa:master Jun 28, 2020
@rkm rkm deleted the issue/15-pep484-type-annotations branch June 28, 2020 10:41
@rkm
Copy link
Contributor Author

rkm commented Jun 28, 2020

Thanks for the merge! Hope I can help out more in future.

Would love to know why tox was unable to run pre-commit or work - What was the error? can you open an issue?

It was due to something broken in my local environment which I wasn't able to track down. I blew away my local pip and pre-commit caches and it worked again though. Not sure there's enough info there for a bug report unfortunately!

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.

PEP484 type annotate all of bandersnatch
2 participants