Repository navigation
Enable Ruff preview and use human-readable rule names
#16496
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| ### This .pyi file is a helper for centralized storage types that are reused across different runtime modules. ### | ||
| ############################################################################################################ | ||
| # This .pyi file is a helper for centralized storage types that are reused across different runtime modules. | ||
| ############################################################################################################ | ||
|
Comment on lines
-1
to
+3
Member
Author
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. Ruff flagged the old version of this comment with https://docs.astral.sh/ruff/rules/multiple-leading-hashes-for-block-comment/ |
||
| from _typeshed import FileDescriptor | ||
| from collections.abc import Awaitable, Callable, Iterable, MutableMapping | ||
| from typing import Any, TypeAlias | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # six explicitly re-exports builtins. Normally this is something we'd want to avoid. | ||
| # But this is specifically a compatibility package. | ||
| from builtins import * # noqa: UP029 | ||
| from builtins import * # ruff: ignore[unnecessary-builtin-import] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import datetime | ||
| import urllib | ||
| import urllib.request | ||
| import xml.etree.ElementTree as etree | ||
|
|
||
|
|
||
|
Member
Author
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. Ruff flagged the old |
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.
these changes were due to an autofix by no-space-after-inline-comment, which also flags too many spaces after an inline comment
#