-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
flake8
, isort
, pyupgrade
with ruff
https://github.com/charliermarsh/ruff/ is a faster replacement of most of the linting tools we use, and is starting to picked up by several other projects. Even project like Pandas have adopted Ruff (pandas-dev/pandas#50160) This PR replaces flake8, isort, pyupgrade.
- Loading branch information
Showing
13 changed files
with
56 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
line-length = 120 | ||
|
||
# Enable Pyflakes `E` and `F` codes by default. | ||
extend-select = [ | ||
"W", # pycodestyle warnings | ||
"I", # isort | ||
"C90", # Complexity | ||
# "B", # flake8-bugbear | ||
"C", # flake8-comprehensions | ||
# "ANN", # flake8-comprehensions | ||
"ISC", # flake8-implicit-str-concat | ||
"T10", # flake8-debugger | ||
"A", # flake8-builtins | ||
"UP", # pyupgrade | ||
] | ||
extend-ignore = ["A002"] | ||
|
||
# Exclude a variety of commonly ignored directories. | ||
extend-exclude = [ | ||
"__pycache__", | ||
"docs/source/conf.py", | ||
] | ||
|
||
target-version = "py37" | ||
fix = true | ||
|
||
[per-file-ignores] | ||
"python-sdk/src/astro/sql/__init__.py" = ["F401"] | ||
"python-sdk/src/astro/lineage/__init__.py" = ["F401"] | ||
"python-sdk/src/astro/sql/table.py" = ["F401"] | ||
|
||
|
||
[mccabe] | ||
max-complexity = 6 | ||
|
||
[isort] | ||
combine-as-imports = true | ||
known-first-party = ["astro", "tests", "sql_cli"] |