-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add ruff #642
Add ruff #642
Conversation
3a2ac78
to
dd4a7ad
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.
The changes look good. I did not find any problems after the changes.
oerc0122#1 needs to be merged into this first, but it's a significant chunk of (hopefully) whitespace-only changes. |
0e1c40b
to
28db251
Compare
@@ -165,7 +165,7 @@ def finalize(self): | |||
|
|||
if self.configuration["normalize"]["value"]: | |||
for element in nAtomsPerElement.keys(): | |||
if self._outputData["gacf_{}}".format(element)][0] == 0: | |||
if self._outputData[f"gacf_{element}}}"][0] == 0: |
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.
Is that extraneous bracket meant to be there?
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.
No, it should be removed.
de4828c
to
85abb15
Compare
I checked this one again. I think it is fine to be merged. |
c409300
to
cbca21f
Compare
Description of work
Add ruff linting to CI and fix issues raised.
Fixes
Issues raised by ruff defaults.
To test
Standard tests should run.