-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[dagster-aws] extend main ruff config + move boto3-stubs to stubs
extras
#24153
[dagster-aws] extend main ruff config + move boto3-stubs to stubs
extras
#24153
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @danielgafni and the rest of your teammates on |
4717282
to
6df7cb0
Compare
|
6df7cb0
to
07f3e28
Compare
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.
Hmm this seems complicated.
The errors that users would see are not phantom errors, correct? They would be real issues?
I don't think this is an unreasonable change, and users can easily ignore it with type: ignore
.
Is this in response to user feedback?
Well, kinda, but not exactly. But there are 2 arguments against them:
In conclusion, this doesn't seem right to me, it should be a conscious decision to enable type-checking for
No, but I am confident the users are going to complain about it |
Ah it will be break all all boto3 API calls. Yes then I agree this is too aggressive. I just don't know if this is worth all the trouble and complexity at this point. How many people are going to go through the trouble of installing the appropriate extra? Let's discuss in our meeting today. |
Per offline discussion let's name the extra [stubs] and this is useful for our own internal development. Let's rename it and move forward. |
07f3e28
to
8060825
Compare
stubs
extras
8060825
to
f7503e3
Compare
@schrockn done |
f7503e3
to
bd00566
Compare
bd00566
to
e69f610
Compare
Summary & Motivation
We currently have
boto3-stubs-lite
indagster-aws
runtime dependencies. This might be causing type-checkers to fail for our users if they have "bad"boto3
code (which previously wasn't checked because no stubs package was installed). This PR movesboto3-stubs-lite
to a newstubs
extras ofdagster-aws
, ensuring it won't be installed by default. It's now only imported underif TYPE_CHECKING
blocks. Packages likemypy_boto3_glue
were added to banned top-level modules (via ruff rule).Additionally,
dagster-aws
's ruff config now extends the root config. This mostly fixed import ordering, previouslydagster_aws
imports weren't coming after all other packages.How I Tested These Changes
Changelog [New | Bug | Docs]