Skip to content

Add mypy Pre-Commit For hi & hit Pt.10#674

Merged
daralynnrhode merged 12 commits into
IMAP-Science-Operations-Center:devfrom
daralynnrhode:add_mypy_hi_hit
Jul 4, 2024
Merged

Add mypy Pre-Commit For hi & hit Pt.10#674
daralynnrhode merged 12 commits into
IMAP-Science-Operations-Center:devfrom
daralynnrhode:add_mypy_hi_hit

Conversation

@daralynnrhode
Copy link
Copy Markdown
Contributor

Adding the mypy Pre-commit hook for hi & hit.

Overview

Changes for this PR will occur in the imap_processing/hi and imap_processing/hit files . Applying the mypy pre-commit and making any necessary changes to then pass the checks.

Please double check all function definitions and the types applied to the parameters.
With any TODO listed I tried to explain what error it was causing and then ignored the error in the code line.

The places where inline ignore comments are will be changed/fixed before the PR is merged unless for special instances.

This one is kinda long because I could not exclude one folder without excluding the other from the checks. Sorry in advance.

New Dependencies

New Files

Deleted Files

Updated Files

-imap_processing/hit/l1a/hit_l1a.py
-imap_processing/hi/utils.py
-imap_processing/hit/l0/utils/hit_base.py
-imap_processing/hi/l1a/science_direct_event.py
-imap_processing/hi/l0/decom_hi.py
-imap_processing/hit/l0/data_classes/housekeeping.py
-imap_processing/hi/l1b/hi_l1b.py
-imap_processing/hi/l1a/hi_l1a.py
-imap_processing/hit/l1b/hit_l1b.py
-imap_processing/hit/l1a/hit_l1a.py

Testing

@daralynnrhode daralynnrhode added Repo: Documentation Improvements or additions to documentation Repo: Testing Related to testing labels Jun 28, 2024
@daralynnrhode daralynnrhode requested a review from a team June 28, 2024 20:51
@daralynnrhode daralynnrhode self-assigned this Jun 28, 2024
@daralynnrhode daralynnrhode changed the title Add mypy Pre-Commit For hi & hit Pt.10 [WIP] Add mypy Pre-Commit For hi & hit Pt.10 Jun 28, 2024
@daralynnrhode daralynnrhode changed the title [WIP] Add mypy Pre-Commit For hi & hit Pt.10 Add mypy Pre-Commit For hi & hit Pt.10 Jun 28, 2024
@daralynnrhode daralynnrhode requested review from a team and bourque and removed request for a team June 28, 2024 21:06
Copy link
Copy Markdown
Contributor

@tmplummer tmplummer 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 doing this. I am learning how sloppy my type specifications are from this PR. This is valuable work for the project!

With the recommended changes to fix TODOs, the changes for Hi look good to me.

Comment thread imap_processing/hi/l1a/science_direct_event.py Outdated
Comment thread imap_processing/hi/l1a/science_direct_event.py Outdated
Copy link
Copy Markdown
Contributor

@sdhoyt sdhoyt left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@daralynnrhode daralynnrhode merged commit d556849 into IMAP-Science-Operations-Center:dev Jul 4, 2024
@daralynnrhode daralynnrhode deleted the add_mypy_hi_hit branch July 4, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Repo: Documentation Improvements or additions to documentation Repo: Testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants