Skip to content
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

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Add ruff #642

merged 2 commits into from
Feb 11, 2025

Conversation

oerc0122
Copy link
Collaborator

@oerc0122 oerc0122 commented Jan 24, 2025

Description of work
Add ruff linting to CI and fix issues raised.

Fixes
Issues raised by ruff defaults.

To test
Standard tests should run.

@oerc0122 oerc0122 added the styling Any issue related to styling label Jan 24, 2025
@oerc0122 oerc0122 self-assigned this Jan 24, 2025
@oerc0122 oerc0122 force-pushed the add-ruff branch 2 times, most recently from 3a2ac78 to dd4a7ad Compare January 27, 2025 11:21
Copy link
Collaborator

@MBartkowiakSTFC MBartkowiakSTFC left a 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
Copy link
Collaborator Author

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.

@oerc0122 oerc0122 force-pushed the add-ruff branch 6 times, most recently from 0e1c40b to 28db251 Compare January 30, 2025 14:58
@@ -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:
Copy link
Collaborator Author

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?

Copy link
Collaborator

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.

@oerc0122 oerc0122 force-pushed the add-ruff branch 6 times, most recently from de4828c to 85abb15 Compare February 3, 2025 12:18
@MBartkowiakSTFC
Copy link
Collaborator

I checked this one again. I think it is fine to be merged.

@oerc0122 oerc0122 force-pushed the add-ruff branch 2 times, most recently from c409300 to cbca21f Compare February 11, 2025 11:37
@oerc0122 oerc0122 merged commit 97124eb into ISISNeutronMuon:protos Feb 11, 2025
28 checks passed
@oerc0122 oerc0122 deleted the add-ruff branch February 11, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
styling Any issue related to styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants