-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enforce stricter checks (ruff
, mypy
, and pylint
)
#55
Conversation
535c102
to
4fb3cf5
Compare
50bc627
to
b22cb14
Compare
this automatically fixes a non-resolved import as well
this fixes the last wrong import
this fixes a circular import of molbe.BE molbe.BE depends on shared/helper, so we cannot import it in shared/helper.py
- everythying uses `pip install .` now - take out some not-anymore-needed conda specific installation commands - take out PYTHONPATH fiddling
pylint only checks E0401,R0401,E0611 because the actually require importing python code which `ruff` does not do
2252a5d
to
7ff5b35
Compare
ruff
, mypy
, and pylint
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
One TODO: we will have to add SHCI instructions in the readme, once we review that part of the code. We will have to choose/test whether we keep it as an optional install, like Wannier90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, just a couple of questions to be answered and then this is ready to be merged.
ruff check
as part of the test-suite and as part of the commit hookpylint
checks as well that cannot be done byruff
mypy
as part of the test-suite, legacy files are explicitly black-listed in themypy.ini
. This allows to gradually switch on stricter type checks for older files and enforces it for newer ones.kbe.pfrag
update_heff
to not return anything since it has side-effects