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

Annotate Typing #185

Open
FabianHofmann opened this issue Oct 27, 2023 · 0 comments
Open

Annotate Typing #185

FabianHofmann opened this issue Oct 27, 2023 · 0 comments

Comments

@FabianHofmann
Copy link
Collaborator

It seems to be a good way to use monkeytype for this:

pip install monkeytype

monkeytype run -m pytest linopy --doctest-modules test 

monkeytype apply linopy.<module>

# see all modules with monkeytype list-modules

one needs to solve circular imports as well.

Afterwards we can add mypy to pre-commit

-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.6.1  # Use the sha / tag you want to point at
    hooks:
    -   id: mypy
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

No branches or pull requests

1 participant