-
Notifications
You must be signed in to change notification settings - Fork 126
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
[pre-commit.ci] pre-commit autoupdate #38594
Conversation
👋 Hi, @pre-commit-ci, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.6...v0.9.1)
for more information, see https://pre-commit.ci
b2b8972
to
72aacb6
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.
I have reviewed by eye all the changes made by pre-commit and @peterfpeterson . These all look to be formatting changes rather than any functional changes e.g. conjoining sentences, removing unneccessary whitespace etc. The tests all passed so I am going to approve this PR.
However on running pre-commit run --all-files
(as per #38566 discussion) I found an additional file that needed changes. I have pushed this as a commit seeing as we're so close to code freeze. I don't think this will change any functionality so am still approving. Please can whoever @mantidproject/gatekeepers this one pay attention to my commit and whether any tests fail?
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.
It took a while, but managed to read through all the files 😓 The majority of the formatting changes look good, I just spotted a couple things I thought I'd flag
) | ||
# Reciprocal vector orthogonal to VectorU and in-plane with | ||
# incoming beam | ||
self.declareProperty( | ||
FloatArrayProperty("VectorV", [0, 1, 0], array_length_three, direction=Direction.Input), | ||
doc="three item, comma-separated, HKL indexes" "of the direction perpendicular to VectorV" "and the vertical axis", | ||
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis", |
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.
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis", | |
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorV and the vertical axis", |
) | ||
# Reciprocal vector orthogonal to VectorU and in-plane with | ||
# incoming beam | ||
self.declareProperty( | ||
FloatArrayProperty("VectorV", [0, 1, 0], array_length_three, direction=Direction.Input), | ||
doc="three item, comma-separated, HKL indexes" "of the direction perpendicular to VectorV" "and the vertical axis", | ||
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis", |
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.
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorVand the vertical axis", | |
doc="three item, comma-separated, HKL indices of the direction perpendicular to VectorV and the vertical axis", |
@@ -100,7 +100,7 @@ def PyInit(self): | |||
defaultValue=0.0, | |||
direction=Direction.Input, | |||
validator=FloatBoundedValidator(lower=0.0, upper=180.0), | |||
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis" "(perpendicular to ki)", | |||
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis(perpendicular to ki)", |
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.
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis(perpendicular to ki)", | |
doc="omega rotation between component of goniometer axis in XY-plane from +ve Y-axis (perpendicular to ki)", |
@@ -28,7 +28,7 @@ def category(self): | |||
return "Simulation; Inelastic\\DataHandling" | |||
|
|||
def summary(self): | |||
return "Imports 1D dos and vac functions from an nMolDyn 4 output file," "convoluting it with a resolution function if required." | |||
return "Imports 1D dos and vac functions from an nMolDyn 4 output file,convoluting it with a resolution function if required." |
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.
return "Imports 1D dos and vac functions from an nMolDyn 4 output file,convoluting it with a resolution function if required." | |
return "Imports 1D dos and vac functions from an nMolDyn 4 output file, convoluting it with a resolution function if required." |
@@ -38,7 +38,7 @@ def PyInit(self): | |||
self.declareProperty( | |||
"CheckInstruments", | |||
True, | |||
"If checked, only workspaces with equal" "instrument parameters are merged." "Do not disable without a very good reason.", | |||
"If checked, only workspaces with equal instrument parameters are merged.Do not disable without a very good reason.", |
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.
"If checked, only workspaces with equal instrument parameters are merged.Do not disable without a very good reason.", | |
"If checked, only workspaces with equal instrument parameters are merged. Do not disable without a very good reason.", |
@@ -175,7 +173,7 @@ def PyInit(self) -> None: | |||
self.declareProperty( | |||
name="KeepIntermediateWorkspaces", | |||
defaultValue=False, | |||
doc="Whether to keep the intermediate sample and calibration\n" "workspaces for diagnostic checks.", | |||
doc="Whether to keep the intermediate sample and calibration\nworkspaces for diagnostic checks.", |
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.
doc="Whether to keep the intermediate sample and calibration\nworkspaces for diagnostic checks.", | |
doc="Whether to keep the intermediate sample and calibration workspaces for diagnostic checks.", |
) | ||
|
||
self.declareProperty( | ||
name="SteppedScanParameter", | ||
defaultValue=False, | ||
doc="If the environment variable is set and held\n" "during each scan rather than continuosly changing.", | ||
doc="If the environment variable is set and held\nduring each scan rather than continuosly changing.", |
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.
doc="If the environment variable is set and held\nduring each scan rather than continuosly changing.", | |
doc="If the environment variable is set and held during each scan rather than continuosly changing.", |
doc="Normalise the sample counts over the environment or\n" | ||
"time range. Values are in environment units or secs,\n" | ||
" eg 75-100", | ||
doc="Normalise the sample counts over the environment or\ntime range. Values are in environment units or secs,\n eg 75-100", |
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.
doc="Normalise the sample counts over the environment or\ntime range. Values are in environment units or secs,\n eg 75-100", | |
doc="Normalise the sample counts over the environment or time range. Values are in environment units or secs,\n eg 75-100", |
@@ -148,21 +148,19 @@ def PyInit(self) -> None: | |||
self.declareProperty( | |||
name="ScanParameter", | |||
defaultValue="", | |||
doc="Display data for time series environment variable,\n" "using optional label and units" " eg T02SP06 [, Temperature, K]", | |||
doc="Display data for time series environment variable,\nusing optional label and units eg T02SP06 [, Temperature, K]", |
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.
doc="Display data for time series environment variable,\nusing optional label and units eg T02SP06 [, Temperature, K]", | |
doc="Display data for time series environment variable, using optional label and units eg T02SP06 [, Temperature, K]", |
@@ -97,7 +97,7 @@ def PyInit(self) -> None: | |||
mandatoryInputRuns.add(StringArrayMandatoryValidator()) | |||
self.declareProperty( | |||
StringArrayProperty("SampleRuns", values=[], validator=mandatoryInputRuns), | |||
doc="Comma separated range of sample runs,\n" "and optional dataset indexes,\n" " eg [cycle::] 7333-7341,7345[:0-23]", | |||
doc="Comma separated range of sample runs,\nand optional dataset indexes,\neg [cycle::] 7333-7341,7345[:0-23]", |
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.
doc="Comma separated range of sample runs,\nand optional dataset indexes,\neg [cycle::] 7333-7341,7345[:0-23]", | |
doc="Comma separated range of sample runs, and optional dataset indexes, eg [cycle::] 7333-7341,7345[:0-23]", |
A lot of the formatting issues (involving missing spaces) are not regressions, and already existed in the code. Its been decided to merge this PR now and fix the highlighted formatting problems in a separate PR This is so we can merge this PR before creating the release-next branch due to code freeze |
Opened a maintenance issue here #38610 |
updates: