Skip to content

Conversation

@rvhonorato
Copy link
Member

@rvhonorato rvhonorato commented Oct 16, 2023

This PR continues #645;

Many type annotations were added, and where the code was too esoteric, I added type: ignore. I have also updated the actions to run mypy before running the tests.

Since it support gradual typing and typing is not the norm, I've set it so that only the (new) typed functions should be checked - new untyped code should not be affected.

@rvhonorato rvhonorato requested a review from mgiulini October 16, 2023 13:49
@rvhonorato rvhonorato self-assigned this Oct 16, 2023
@rvhonorato rvhonorato added the CI / repository Continuous integration or repository organization label Oct 16, 2023
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Attention: 182 lines in your changes are missing coverage. Please review.

Comparison is base (4947630) 75.21% compared to head (bc19cd9) 75.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #724      +/-   ##
==========================================
+ Coverage   75.21%   75.47%   +0.26%     
==========================================
  Files         114      115       +1     
  Lines        8068     8205     +137     
==========================================
+ Hits         6068     6193     +125     
- Misses       2000     2012      +12     
Files Coverage Δ
src/haddock/__init__.py 96.29% <100.00%> (ø)
src/haddock/core/cns_paths.py 100.00% <100.00%> (ø)
src/haddock/core/defaults.py 88.88% <ø> (ø)
src/haddock/core/supported_molecules.py 93.52% <100.00%> (+0.14%) ⬆️
src/haddock/gear/clean_steps.py 87.32% <100.00%> (ø)
src/haddock/gear/expandable_parameters.py 100.00% <100.00%> (ø)
src/haddock/gear/greetings.py 48.14% <100.00%> (+1.99%) ⬆️
src/haddock/gear/haddockmodel.py 100.00% <100.00%> (ø)
src/haddock/gear/preprocessing.py 99.59% <100.00%> (+<0.01%) ⬆️
src/haddock/gear/restart_run.py 68.75% <100.00%> (+2.08%) ⬆️
... and 56 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rvhonorato rvhonorato marked this pull request as ready for review October 16, 2023 13:51
mgiulini
mgiulini previously approved these changes Oct 17, 2023
@sverhoeven
Copy link
Contributor

It would be nice to add py.typed file see https://peps.python.org/pep-0561/#packaging-type-information

@rvhonorato
Copy link
Member Author

That looks interesting indeed @sverhoeven - I'll do it in another PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI / repository Continuous integration or repository organization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants