-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option of running stubtest using tox #27618
Conversation
I tried modifying |
It looks like I added an error that stubest doesn't check for. I've go tox/stubtest working now, just need to fix |
8403fa3
to
fc592cd
Compare
Fab, this seems to be working now |
.github/workflows/mypy-stubtest.yml
Outdated
pip3 install -r requirements/testing/mypy.txt \ | ||
-r requirements/testing/all.txt | ||
pip3 install . | ||
python-version: 3.11 |
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.
I think we do want to run on the oldest supported python version to avoid accidentally allowing typing features that were introduced more recently.
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.
馃憤 done
lib/matplotlib/axis.py
Outdated
@@ -40,6 +40,10 @@ | |||
} | |||
|
|||
|
|||
def new_func(x): |
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 test func should be removed, it did error on CI.
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.
馃憤 I removed the commit with this in
Fix reviewdog sed Add tox install stage
de4623e
to
106ce16
Compare
Co-authored-by: Kyle Sunden <git@ksunden.space>
This gives developers the option of running stubtests using
tox
. This is useful, because the stubtests can't be run on local editable installs (see #27580).I've added a test commit that breaks stubtest deliberately to show this works - I will leave this here for review purposes, then force push it away once this has one approved review.
I can't get this to give me a true negative result locally though 馃槩 . With the below diff (saved, but unstaged in git), runningtox -e stubtest
still gives me a successful result. I'll investigate a bit further, but I don't suppose anyone has any ideas?Fixes #27580.
PR summary
PR checklist