-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] ruff: ban relative imports (#23816)
## Summary & Motivation Internal discussion: dagster-io/internal#11157 Relative imports are discouraged in Python. 1. From `ruff` [docs](https://docs.astral.sh/ruff/rules/relative-imports/): >Why is this bad? Absolute imports, or relative imports from siblings, are recommended by [PEP 8](https://peps.python.org/pep-0008/#imports): Absolute imports are recommended, as they are usually more readable and tend to be better behaved (or at least give better error messages) if the import system is incorrectly configured (such as when a directory inside a package ends up on sys.path) ## How I Tested These Changes Existing tests should pass. The only test which required tweaking was testing line numbers lol ## Changelog [New | Bug | Docs] > `NOCHANGELOG`
- Loading branch information
1 parent
90fb55e
commit 053612f
Showing
835 changed files
with
4,090 additions
and
3,365 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
8 changes: 4 additions & 4 deletions
8
.buildkite/dagster-buildkite/dagster_buildkite/pipelines/dagster_oss_nightly_pipeline.py
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
17 changes: 12 additions & 5 deletions
17
.buildkite/dagster-buildkite/dagster_buildkite/steps/docs.py
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
10 changes: 5 additions & 5 deletions
10
.buildkite/dagster-buildkite/dagster_buildkite/steps/test_project.py
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
2 changes: 1 addition & 1 deletion
2
.buildkite/dagster-buildkite/dagster_buildkite/steps/trigger.py
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from ..utils import WaitStep | ||
from dagster_buildkite.utils import WaitStep | ||
|
||
|
||
def build_wait_step() -> WaitStep: | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,8 @@ | ||
[tool.ruff] | ||
extend = "../pyproject.toml" | ||
|
||
[tool.ruff.lint] | ||
extend-ignore = [ | ||
# (relative imports): relative imports are acceptable in examples & docs | ||
"TID252" | ||
] |
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
36 changes: 19 additions & 17 deletions
36
helm/dagster/schema/schema/charts/dagster/subschema/__init__.py
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
from .busybox import Busybox as Busybox | ||
from .compute_log_manager import ComputeLogManager as ComputeLogManager | ||
from .daemon import Daemon as Daemon | ||
from .flower import Flower as Flower | ||
from .global_ import Global as Global | ||
from .ingress import Ingress as Ingress | ||
from .migrate import Migrate as Migrate | ||
from .postgresql import PostgreSQL as PostgreSQL | ||
from .python_logs import PythonLogs as PythonLogs | ||
from .rabbitmq import RabbitMQ as RabbitMQ | ||
from .redis import Redis as Redis | ||
from .retention import Retention as Retention | ||
from .run_launcher import RunLauncher as RunLauncher | ||
from .scheduler import Scheduler as Scheduler | ||
from .service_account import ServiceAccount as ServiceAccount | ||
from .telemetry import Telemetry as Telemetry | ||
from .webserver import Webserver as Webserver | ||
from schema.charts.dagster.subschema.busybox import Busybox as Busybox | ||
from schema.charts.dagster.subschema.compute_log_manager import ( | ||
ComputeLogManager as ComputeLogManager, | ||
) | ||
from schema.charts.dagster.subschema.daemon import Daemon as Daemon | ||
from schema.charts.dagster.subschema.flower import Flower as Flower | ||
from schema.charts.dagster.subschema.global_ import Global as Global | ||
from schema.charts.dagster.subschema.ingress import Ingress as Ingress | ||
from schema.charts.dagster.subschema.migrate import Migrate as Migrate | ||
from schema.charts.dagster.subschema.postgresql import PostgreSQL as PostgreSQL | ||
from schema.charts.dagster.subschema.python_logs import PythonLogs as PythonLogs | ||
from schema.charts.dagster.subschema.rabbitmq import RabbitMQ as RabbitMQ | ||
from schema.charts.dagster.subschema.redis import Redis as Redis | ||
from schema.charts.dagster.subschema.retention import Retention as Retention | ||
from schema.charts.dagster.subschema.run_launcher import RunLauncher as RunLauncher | ||
from schema.charts.dagster.subschema.scheduler import Scheduler as Scheduler | ||
from schema.charts.dagster.subschema.service_account import ServiceAccount as ServiceAccount | ||
from schema.charts.dagster.subschema.telemetry import Telemetry as Telemetry | ||
from schema.charts.dagster.subschema.webserver import Webserver as Webserver |
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
2 changes: 1 addition & 1 deletion
2
helm/dagster/schema/schema/charts/dagster/subschema/rabbitmq.py
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.
053612f
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.
Deploy preview for dagster-docs ready!
✅ Preview
https://dagster-docs-9zg8ojfis-elementl.vercel.app
https://master.dagster.dagster-docs.io
Built with commit 053612f.
This pull request is being automatically deployed with vercel-action