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 missing type hints & Force type hints - Part 3 #4805

Merged

Conversation

finswimmer
Copy link
Member

@finswimmer finswimmer commented Nov 20, 2021

This PR is the final part of a series which add missing type hints to both package code and test code. Furthermore flake-annotations is added as a flake8 plugin to enforce type hints in the future.

@finswimmer finswimmer force-pushed the improvement/force-type-hints_part-3 branch from 84d1465 to ab8a38b Compare November 20, 2021 16:44
@finswimmer finswimmer force-pushed the improvement/force-type-hints_part-3 branch from c7d4805 to e1a1859 Compare November 21, 2021 07:26
@finswimmer finswimmer changed the title Add missing type hints - Part 3 Add missing type hints & Force type hints - Part 3 Nov 21, 2021
@finswimmer finswimmer marked this pull request as ready for review November 21, 2021 08:28
@finswimmer finswimmer requested a review from a team November 21, 2021 08:28
Copy link
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

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

Minor nits over the lint config -- overall LGTM. Today I learned about the Pytest parameterized kwargs splitting a string on "," -- I've only ever used the list syntax myself.

.flake8 Show resolved Hide resolved
.flake8 Show resolved Hide resolved
.flake8 Outdated
@@ -3,6 +3,7 @@ min_python_version = 3.6.0
max-line-length = 88
ban-relative-imports = true
inline-quotes = double
mypy-init-return = True
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a comment here explaining which plugin this corresponds to / maybe a doc link? Also let's go for a lower case true since that's what we've done in the rest of the file.

@@ -41,6 +41,7 @@ repos:
- flake8-type-checking==1.1.0
- flake8-typing-imports==1.11.0
- pep8-naming==0.12.1
- flake8-annotations
Copy link
Member

Choose a reason for hiding this comment

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

Let's lock this to a version and alphabetize it.

@finswimmer finswimmer force-pushed the improvement/force-type-hints_part-3 branch from a661bca to 5214721 Compare November 23, 2021 06:52
@neersighted neersighted merged commit 72497bc into python-poetry:master Nov 23, 2021
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants