Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Post stubtest results to GitHub checks#25586

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ksunden merged 1 commit intomatplotlib:mainfromQuLogic:reviewdog-mypy-stubtest
Apr 17, 2023

Conversation

QuLogic
Copy link
Member

PR Summary

Unfortunately, the way thatstubtest outputs its error messages makes it difficult to post a message onboth the.py and.pyi stub, so we decided to take the full message and post it only on one.

As a test, I have made PR in my repoQuLogic#30 which started from the previously-unfixed#25542, and then I also added a commit with multiple argument mismatches to confirm thatstubtest didn't output some different format.

Results are at the bottom ofhttps://github.com/QuLogic/matplotlib/pull/30/files

PR Checklist

Documentation and Tests

  • [n/a] Has pytest style unit tests (andpytest passes)
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • [n/a] New plotting related features are documented with examples.

Release Notes

  • [n/a] New features are marked with a.. versionadded:: directive in the docstring and documented indoc/users/next_whats_new/
  • [n/a] API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • [n/a] Release notes conform with instructions innext_whats_new/README.rst ornext_api_changes/README.rst

@QuLogicQuLogic added topic: typing CI: testingCI configuration and testing labelsMar 31, 2023
@QuLogicQuLogic added this to thev3.8.0 milestoneMar 31, 2023
@ksunden
Copy link
Member

ksunden commentedMar 31, 2023
edited
Loading

The case that may need to be looked at a bit is the missing stub case, as that does not have a stub path to parse.

Edit: on second thought, it may give the path of the parent object or just line 0 of the module, but still worth a look

@QuLogic
Copy link
MemberAuthor

Would that be for a new Python file entirely?

@ksunden
Copy link
Member

No, just for a new method is what I was thinking

@QuLogic
Copy link
MemberAuthor

Thestubtest output for that case doesn't include a line number, so it doesn't get posted, but the other errors do work fine. I'm not sure if I can get it to fall back to posting on the.py or if it would confuse it.

@QuLogic
Copy link
MemberAuthor

I also just added an extra function in the stub, but not the Python file, and I see that that doesn't get posted either; it looks like there's a slightly difference in output in that case, which I should be able to cover.

@QuLogicQuLogicforce-pushed thereviewdog-mypy-stubtest branch fromeff69d5 to2d05200CompareApril 6, 2023 08:06
@QuLogic
Copy link
MemberAuthor

OK, this is now able to post 1) differences between stubs and runtime; 2) items in stubs but not in runtime. Unfortunately, the case with items in runtime but not stubs cannot be caught, AFAICT.

Seehttps://github.com/QuLogic/matplotlib/pull/30/files

@QuLogic
Copy link
MemberAuthor

I opened an issue on stubtest to see if concise error messages could contain a bit more information (linked above). This could simplify this posting process as message would not be multiline.

Copy link
Member

@oscargusoscargus left a comment

Choose a reason for hiding this comment

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

Let's try this and see what happens.

@ksundenksunden merged commiteb3fa7e intomatplotlib:mainApr 17, 2023
@QuLogicQuLogic deleted the reviewdog-mypy-stubtest branchApril 17, 2023 22:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Labels
CI: testingCI configuration and testingtopic: typing
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp