-
Notifications
You must be signed in to change notification settings - Fork 14.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
Replace Ruff's known-third-party
setting with namespace-packages
#32873
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
@@ -21,9 +21,10 @@ | |||
from typing import Any, Iterable | |||
|
|||
import apprise | |||
from airflow.hooks.base import BaseHook | |||
from apprise import AppriseConfig, NotifyFormat, NotifyType |
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.
As an example: these apprise
imports were incorrectly marked as first-party, since apprise
was missing from the known-third-party
.
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 awesome
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
The apache#32873 has been merged without merging and commiting breeze's hash accounting for changed dependencies, breaking unit tests of breeze. This PR brings hash of breeze back adter running `breeze setup version` manually and commiting the changed hash.
The #32873 has been merged without merging and commiting breeze's hash accounting for changed dependencies, breaking unit tests of breeze. This PR brings hash of breeze back adter running `breeze setup version` manually and commiting the changed hash.
👋 This PR removes the
known-third-party
andknown-first-party
settings from Airflow's Ruff configuration with a singlenamespace-packages
entry.Previously, all subdirectories of
airflow/providers
were enumerated in thepyproject.toml
, but it looks like a few were added to the codebase over time but not to the list inpyproject.toml
, leading to some import-categorization drift (as visible in the below changes).Ruff allows for namespace packages to be enumerated directly, which will ensure that future packages are handled consistently without any need to update the
pyproject.toml
.