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

Create a hera mypy plugin #911

Open
sambhav opened this issue Dec 27, 2023 · 1 comment
Open

Create a hera mypy plugin #911

sambhav opened this issue Dec 27, 2023 · 1 comment
Labels
type:enhancement A general enhancement

Comments

@sambhav
Copy link
Collaborator

sambhav commented Dec 27, 2023

Is your feature request related to a problem? Please describe.

Hera currently doesn't have great mypy integration. There are often type errors and input args/paramters are not validated at all.

Describe the solution you'd like

It would be great is hera shipped with a mypy plugin - https://mypy.readthedocs.io/en/stable/extending_mypy.html#extending-mypy-using-plugins

This would be similar to https://docs.pydantic.dev/2.0/api/mypy/

Describe alternatives you've considered

N/A

Additional context

@sambhav sambhav added the type:enhancement A general enhancement label Dec 27, 2023
sambhav pushed a commit that referenced this issue Jan 5, 2024
**Pull Request Checklist**
- [ ] Towards fixing #911
- [ ] Tests added
- [ ] Documentation/examples added
- [ ] [Good commit messages](https://cbea.ms/git-commit/) and/or PR
title

**Description of PR**
Fixes mypy linting issues with default args for mixin fields of
arguments, metrics, volumes in workflow.py

Signed-off-by: Max Shatkhin <[email protected]>
@DanCardin
Copy link
Contributor

I wonder if #950 fixes this issue, or did you have something else in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants