Skip to content

Add missing type hints & Force type hints - Part 3 - #4805

Merged
neersighted merged 11 commits into
python-poetry:masterfrom
finswimmer:improvement/force-type-hints_part-3
Nov 23, 2021
Merged

neersighted merged 11 commits into
python-poetry:masterfrom
finswimmer:improvement/force-type-hints_part-3

Conversation

@finswimmer

@finswimmer finswimmer commented Nov 20, 2021 •

Copy link
Copy Markdown
Member

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

@neersighted neersighted left a comment

Copy link
Copy Markdown
Member

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.

Comment thread .flake8 Resolved
Comment thread .flake8 Resolved
Comment thread .flake8 Outdated
max-line-length = 88
ban-relative-imports = true
inline-quotes = double
mypy-init-return = True

Copy link
Copy Markdown
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.

Comment thread .pre-commit-config.yaml Outdated
- flake8-type-checking==1.1.0
- flake8-typing-imports==1.11.0
- pep8-naming==0.12.1
- flake8-annotations

Copy link
Copy Markdown
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
@github-actions

Copy link
Copy Markdown

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.

2 participants