-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <[email protected]>
- Loading branch information
1 parent
9da65d6
commit e51b95f
Showing
375 changed files
with
1,821 additions
and
1,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
RECEIVER_EMAIL = "[email protected]" | ||
PROJECT_NAME = "Superset" | ||
PROJECT_MODULE = "superset" | ||
PROJECT_DESCRIPTION = "Apache Superset is a modern, enterprise-ready business intelligence web application." | ||
PROJECT_DESCRIPTION = "Apache Superset is a modern, enterprise-ready business intelligence web application." # noqa: E501 | ||
|
||
|
||
def string_comma_to_list(message: str) -> list[str]: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ name = "apache-superset" | |
description = "A modern, enterprise-ready business intelligence web application" | ||
readme = "README.md" | ||
dynamic = ["version", "scripts", "entry-points"] | ||
requires-python = "~=3.9" | ||
requires-python = ">=3.9" | ||
license = { file="LICENSE.txt" } | ||
authors = [ | ||
{ name = "Apache Software Foundation", email = "[email protected]" }, | ||
|
@@ -276,8 +276,8 @@ exclude = [ | |
line-length = 88 | ||
indent-width = 4 | ||
|
||
# Assume Python 3.8 | ||
target-version = "py310" | ||
# Assume Python 3.9 | ||
target-version = "py39" | ||
|
||
[tool.ruff.lint] | ||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
|
@@ -290,22 +290,24 @@ select = [ | |
"E9", | ||
"PT009", | ||
"TRY201", | ||
# TODO add these rules in follow up PR | ||
# "B", | ||
# "C", | ||
# "E", | ||
# "F", | ||
#"F", | ||
# "I", | ||
# "N", | ||
# "PT", | ||
# "Q", | ||
# "S", | ||
# "T", | ||
#"W", | ||
"B", | ||
"C", | ||
"E", | ||
"F", | ||
"F", | ||
"I", | ||
"N", | ||
"PT", | ||
"Q", | ||
"S", | ||
"T", | ||
"W", | ||
] | ||
ignore = [ | ||
"S101", | ||
"PT006", | ||
"T201", | ||
"N999", | ||
] | ||
|
||
extend-select = ["I"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.