Skip to content

Conversation

@danielhollas
Copy link
Contributor

  • Run mypy from the local venv, not via pre-commit so that it has access to all the dependencies.
  • Always typecheck the entire repo, not individual files.

(this is not how we do this in aiida-core where things are complicated since we're ignoring files from type-checking)

TODO

I needed to add a bunch of type: ignores. Please see comments inline. These should probably be fixed properly

Run mypy from the local venv, not via pre-commit,
so that it has access to all the dependencies.
Always typecheck the entire repo, not individual files.
of packed objects, and the number of pack files."""

# TODO: Remove type: ignore! Do we need to handle number_packed==None?
number_packed = self._get_operation_session().scalar(select(func.count()).select_from(Obj))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mypy thinks number_packed can be None. I am not sure if it is correct or not.

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.63%. Comparing base (7b7b593) to head (1a12af9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #204   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files           8        8           
  Lines        1931     1931           
=======================================
  Hits         1924     1924           
  Misses          7        7           

☔ 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.

@danielhollas danielhollas marked this pull request as draft December 9, 2025 01:18
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.

1 participant