Skip to content

Add type-checking using mypy#46

Merged
effigies merged 20 commits intobids-standard:mainfrom
ubdbra001:i43-add-mypy
Nov 26, 2025
Merged

Add type-checking using mypy#46
effigies merged 20 commits intobids-standard:mainfrom
ubdbra001:i43-add-mypy

Conversation

@ubdbra001
Copy link
Copy Markdown
Collaborator

@ubdbra001 ubdbra001 commented Nov 3, 2025

closes #43

Adds type-checking using mypy to the CI with tox.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 91.30435% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.36%. Comparing base (f1fbe05) to head (5067056).
⚠️ Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
src/bids_validator/context.py 71.42% 7 Missing and 1 partial ⚠️
src/bids_validator/types/_typings.py 42.85% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
- Coverage   90.95%   90.36%   -0.60%     
==========================================
  Files          12       13       +1     
  Lines         774      799      +25     
  Branches      116      120       +4     
==========================================
+ Hits          704      722      +18     
- Misses         46       49       +3     
- Partials       24       28       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ubdbra001 ubdbra001 marked this pull request as draft November 3, 2025 16:43
@ubdbra001 ubdbra001 force-pushed the i43-add-mypy branch 7 times, most recently from a8f1548 to 1ce2b4f Compare November 3, 2025 21:21
@ubdbra001
Copy link
Copy Markdown
Collaborator Author

@effigies Here's an initial attempt at adding type-checking using mypy to the CI, though I don't think this is how you envisaged it working. What do you think?

@effigies
Copy link
Copy Markdown
Contributor

effigies commented Nov 5, 2025

Yup, this looks good to me. Now to start fixing the errors... I may push a few things.

@effigies
Copy link
Copy Markdown
Contributor

effigies commented Nov 5, 2025

Reenabling strict mode and some initial fixes...

Copy link
Copy Markdown
Collaborator Author

@ubdbra001 ubdbra001 left a comment

Choose a reason for hiding this comment

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

Had a look and am happy with what you've done.
Merge away!

@effigies effigies merged commit d478ba4 into bids-standard:main Nov 26, 2025
31 of 32 checks passed
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.

Add type checking job

2 participants