-
Notifications
You must be signed in to change notification settings - Fork 108
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 RUF (ruff specific rules) to linting rules #8695
Conversation
src/ert/config/analysis_module.py
Outdated
@@ -99,15 +99,15 @@ class IESSettings(BaseSettings): | |||
] = "subspace_exact" | |||
ies_max_steplength: Annotated[ | |||
float, | |||
Field(ge=0.1, le=1.0, title="Gauss–Newton maximum steplength"), | |||
Field(ge=0.1, le=1.0, title="Gauss-Newton maximum steplength"), |
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.
Changing en-dashes to simple dashes? en-dash is the correct way of concatenating scientists names like this (says a LaTeX-fanboy)
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.
Fixed it.
Was mainly interested in adding the rule RUF100 to remove unused noqa, but thought it couldnt hurt to add all RUF rules. One issue is the fact that we have enabled preview rules, which causes some issues and increases the number of rules by a lot.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8695 +/- ##
==========================================
- Coverage 91.45% 91.44% -0.02%
==========================================
Files 343 343
Lines 21292 21293 +1
==========================================
- Hits 19473 19471 -2
- Misses 1819 1822 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 good, remember to squash.
2363b11
to
6358dd2
Compare
6358dd2
to
2ad7010
Compare
See https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
When applicable