Skip to content

Add experimental gradual typing for development #198

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

tylerriccio33
Copy link
Contributor

This PR adds a little support and considerations for local/dev type checking. I add ty (astral's new experimental type checker) to the makefile, add pointblank/py.typed to the ignore file and updated the documentation to say you can type check but it's not enforced. I think as time goes on, I'll start gradually typing things, and maybe one day it can get into the CI checks. For now, this is just helpful for development, especially if you're so used to relying on a type checker (i am).

Also, random but I found pytest-xdist was repeated in the dependencies so i removed it.

@tylerriccio33
Copy link
Contributor Author

Also I think we should leave this branch open, it's easy for me to come in and gradually type a few things and push.

@rich-iannone
Copy link
Member

This is so great, ty!

@tylerriccio33
Copy link
Contributor Author

No worries! Whenever you want to merge feel free, I'm just going to keep pushing stuff

@tylerriccio33
Copy link
Contributor Author

Do you want to merge these periodically? i don't think i'll be able to get all of this in one shot

@rich-iannone
Copy link
Member

@tylerriccio33 Could you update this branch with the current main and resolve the conflicts in test_validate.py? Then I will definitely review and merge!

I missed a merge marker resulting in a huge diff.
@tylerriccio33
Copy link
Contributor Author

Ok this should all be good. Missed a merge marker in test_validate.py so had to do some gymnastics to get back in sync.

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