-
Notifications
You must be signed in to change notification settings - Fork 176
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
Update ruff linter rules according to documentation #940
Conversation
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
ec06bb0
to
7266f64
Compare
I'm on the fence about SIM108, but I think i'm leaning towards including it for consistency. |
7266f64
to
db8a2e4
Compare
db8a2e4
to
bc3505b
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.
Love the consistency
@@ -55,7 +55,7 @@ def try_load_file(self, path: str) -> bytes: | |||
return response["Body"].read() | |||
except botocore.exceptions.ClientError as e: | |||
if e.response["Error"]["Code"] in {"NoSuchKey", "404"}: | |||
raise FileNotFoundError | |||
raise FileNotFoundError from e |
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.
TIL - I've actually never seen this syntax before, cool!
@@ -200,7 +200,22 @@ line-length = 120 | |||
skip-magic-trailing-comma = true | |||
|
|||
[tool.ruff.lint] | |||
select = ["E4", "E7", "E9", "F", "TID251"] | |||
select = [ | |||
"E", # pycodestyle |
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.
Thanks for adding the comments!
Describe your changes
Enables more ruff linting rules as suggested by the documentation. Also disables some that interfere with some core functionality. We can evaluate removing these in the future.
Issue ticket number and link
NA.