-
Notifications
You must be signed in to change notification settings - Fork 96
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
Excise openff dependency from OpenMM testing #993
Conversation
@janosh would you mind taking a look? |
src/atomate2/openmm/utils.py
Outdated
from emmet.core.openmm import OpenMMTaskDocument | ||
|
||
with suppress(ImportError): |
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.
TYPE_CHECKING
is always False
at run time so no need to suppress
errors here. also, suppress
is quite slow compared to try/except
so would usually opt for that
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.
I initially did try/except but it was caught by the linter. should I override then? nvm, understood ty
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.
yes, we should ignore that ruff
rule that recommends contextlib.suppress
. bad rule imo
Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
All fixed, thanks for review @janosh |
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.
👍
Head branch was pushed to by a user without write access
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 great! 👍 thanks for the quick turnaround on #923 (comment) @orionarcher
* Excise openff dependency from openmm testing * Remove commmented out code * Update src/atomate2/openmm/jobs/base.py Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com> * Respond to Yanosh PR and fix type of OpenMM Flow * Fix typo, lint * Add dataclass tag where needed --------- Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
This PR removes the openff dependency from the openmm test suite. This conflict originally arose in PR #923.