Skip to content

Use relative-imports (TID252) instead of pygrep rule#38428

Merged
potiuk merged 1 commit intoapache:mainfrom
Taragolis:no-relative-inport-ruff
Mar 24, 2024
Merged

Use relative-imports (TID252) instead of pygrep rule#38428
potiuk merged 1 commit intoapache:mainfrom
Taragolis:no-relative-inport-ruff

Conversation

@Taragolis
Copy link
Contributor

@Taragolis Taragolis commented Mar 23, 2024

Replace one on our pre-commit hook by included into the ruff rule https://docs.astral.sh/ruff/rules/relative-imports/

This one is unsafe fixable, however I made all changes by ruff check --unsafe-fixes --fix

Maybe we want to exclude specific module/directory from this check, at that moment pygrep rule allow relative imports into the docs and tests but not in kubernetes_tests, helm_tests, docker_tests


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Taragolis Taragolis added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Mar 23, 2024
@Taragolis Taragolis force-pushed the no-relative-inport-ruff branch from 6636c9e to 16069b3 Compare March 24, 2024 03:39
Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good, LGTM

@potiuk potiuk merged commit d820f13 into apache:main Mar 24, 2024
@Taragolis Taragolis deleted the no-relative-inport-ruff branch March 24, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:logging area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation provider:amazon AWS/Amazon - related issues provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants