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

Add MyPy type checking #752

Merged
merged 15 commits into from
Sep 25, 2024
Merged

Conversation

jarrodmillman
Copy link
Member

No description provided.

@jarrodmillman jarrodmillman added this to the 2024.2 release milestone May 14, 2024
@jarrodmillman jarrodmillman marked this pull request as draft May 14, 2024 19:26
Unfortunately, it looks like excludes have to be duplicated. Not sure why.
@stefanv stefanv marked this pull request as draft September 18, 2024 19:50
@stefanv stefanv marked this pull request as ready for review September 19, 2024 00:30
@stefanv
Copy link
Member

stefanv commented Sep 19, 2024

Hah, I introduced an emoji and pdflatex does not like it. xelatex is probably more future proof, but simplest fix here is to remove the emoji.

@stefanv stefanv changed the title Test using mypy Add MyPy type checking Sep 19, 2024
@stefanv
Copy link
Member

stefanv commented Sep 19, 2024

Ready to go, I think!

Copy link
Contributor

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Overall looks good.

- pandas-stubs
- types-pillow
- matplotlib
exclude: |
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if pre-commit could reuse the config and thus this exclude list from pyproject.toml?

Copy link
Member

Choose a reason for hiding this comment

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

That's the part I could not get to work :/ I don't know why it doesn't!

pyproject.toml Outdated Show resolved Hide resolved
@jarrodmillman jarrodmillman merged commit 04a9bbf into scipy-lectures:main Sep 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants