-
Notifications
You must be signed in to change notification settings - Fork 3k
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
dev(ingest): use ruff instead of flake8 #12359
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Looking good so far
Eventual goal is to remove black and isort entirely across all of our plugins. We should probably think about how to standardize lint rules/configs across all of our python packages - but that's not a blocker for this
@@ -267,7 +267,6 @@ def _is_single_row_query_method(query: Any) -> bool: | |||
"get_column_max", | |||
"get_column_mean", | |||
"get_column_stdev", | |||
"get_column_stdev", |
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.
?
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.
There were duplicates in this just above on line 269.
@@ -384,7 +384,6 @@ def resolve_snowflake_modified_type(type_string: str) -> Any: | |||
"varchar": StringType, | |||
"char": StringType, | |||
"varbinary": BytesType, | |||
"json": RecordType, |
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.
why'd we remove this?
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.
Duplicate in this dictionary. See the last element
metadata-ingestion/tests/unit/utilities/test_lossy_collections.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/tests/unit/utilities/test_lossy_collections.py
Outdated
Show resolved
Hide resolved
"C90", | ||
"E", | ||
"F", | ||
"TID", |
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.
need to add one more config here https://docs.astral.sh/ruff/settings/#lint_flake8-tidy-imports_ban-relative-imports
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.
added
Once this is in then can replace black and isort one by one in followup PRs
Checklist