Skip to content
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

feat: Use stubtest to verify stub correctness #30

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

last-partizan
Copy link
Contributor

@last-partizan last-partizan commented Jul 2, 2022

Here's my first attempt to add stubgen to verify stub correctness.

Right now it's failing with nox, but works fine if i use it with normal venv.

It works!

- name: Install conda v3.7
uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason, stubtest cannot handle try/except imports, so i'm using Python 3.10 here.

Copy link
Owner

@smarie smarie Jul 6, 2022

Choose a reason for hiding this comment

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

This is not the version used for the tests, this is the version used to execute nox. So 3.7 should be fine too, but of course any will do

@last-partizan last-partizan marked this pull request as ready for review July 6, 2022 14:56
@last-partizan last-partizan requested a review from smarie July 6, 2022 14:56
@smarie
Copy link
Owner

smarie commented Jul 6, 2022

Nice PR, thanks a lot @last-partizan !

@smarie smarie merged commit b39aeb2 into smarie:main Jul 6, 2022
@last-partizan last-partizan deleted the 22-stubtest branch July 6, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants