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

linters: set disallow_untyped_defs in mypy #350

Merged
merged 6 commits into from
Jan 19, 2023

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Jan 16, 2023

This forces type annotations for functions in craft_parts/.

  • Have you signed the CLA?

@tigarmo tigarmo force-pushed the stricter-mypy branch 2 times, most recently from 45ff414 to 5c08212 Compare January 17, 2023 12:12
This forces type annotations for functions in craft_parts/.
SourceHandler._run() takes a List[str], so it's incorrect to pass a
Path.
@tigarmo tigarmo marked this pull request as ready for review January 17, 2023 13:47
@tigarmo
Copy link
Contributor Author

tigarmo commented Jan 17, 2023

@cmatsuoka the second commit has test code that I had to update on account of typing fixes

@tigarmo tigarmo requested a review from cmatsuoka January 17, 2023 13:48
craft_parts/sources/base.py Outdated Show resolved Hide resolved
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

Everything I've commented has been the rambling thoughts of someone new to the codebase, so take them for what they're worth there

@tigarmo
Copy link
Contributor Author

tigarmo commented Jan 18, 2023

@lengau the comments are much appreciated, thanks. Updated the PR based on your suggestions

@tigarmo tigarmo merged commit f39b6d9 into canonical:main Jan 19, 2023
@tigarmo tigarmo deleted the stricter-mypy branch January 19, 2023 19:04
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.

3 participants