-
Notifications
You must be signed in to change notification settings - Fork 871
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
Fix fixable ruff
rules
#4015
Fix fixable ruff
rules
#4015
Conversation
@@ -83,7 +83,7 @@ def get_parameter_updates( | |||
dict: The updated for the parameters for the output section of FHI-aims | |||
""" | |||
if isinstance(structure, Molecule): | |||
raise ValueError("BandStructures can not be made for non-periodic systems") # noqa: TRY004 |
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.
ValueError
changed to TypeError
, tests seem to pass.
monkeypatch.setitem(SETTINGS, "AIMS_SPECIES_DIR", f"{TEST_FILES_DIR}/io/aims/species_directory") | ||
|
||
|
||
def check_band(test_line: str, ref_line: str) -> bool: |
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.
Need confirm: these helper functions for testing io.aims
is relocated from pymatgen.util.testing.aims
, was the original location intended? Is it safe to relocate them into tests
? @shyuep
f154691
to
f1bba42
Compare
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.
thanks, good stuff as always!
will hold off on reviewing #4017 until this is merged
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.
thanks a million @DanielYang59! 👍
No problem, thanks for reviewing! |
Summary
Fix fixable
ruff
rulesTODOs
io.aims
doesn't follow name convention, and has test files inside it.pymatgen/pyproject.toml
Line 209 in 41e4c69
io.abinit.pseudo
and io.cp2k keywords, PD rules trigger on non-Pandas DataFrames astral-sh/ruff#6432)