-
-
Notifications
You must be signed in to change notification settings - Fork 556
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 config for ruff (#36503, unbundled) #37452
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# https://docs.astral.sh/ruff/configuration/#config-file-discovery | ||
|
||
# Assume Python 3.9 | ||
target-version = "py39" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this the minimal supported version? This isn't what ships with Sage 10.3, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the context :) |
||
|
||
select = [ | ||
"E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e | ||
"F", # pyflakes - https://docs.astral.sh/ruff/rules/#pyflakes-f | ||
"I", # isort - https://docs.astral.sh/ruff/rules/#isort-i | ||
"PL", # pylint - https://docs.astral.sh/ruff/rules/#pylint-pl | ||
] | ||
ignore = [ | ||
"E501", # Line too long - hard to avoid in doctests, and better handled by black. | ||
] |
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.
Comments in JSON is generally not a good idea, right? Maybe this is simply vscode boilerplate though
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.
This is Microsoft's JSONC