-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add missing type hints & Force type hints - Part 3 #4805
Conversation
84d1465
to
ab8a38b
Compare
c7d4805
to
e1a1859
Compare
There was a problem hiding this 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
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 |
There was a problem hiding this comment.
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.
.pre-commit-config.yaml
Outdated
@@ -41,6 +41,7 @@ repos: | |||
- flake8-type-checking==1.1.0 | |||
- flake8-typing-imports==1.11.0 | |||
- pep8-naming==0.12.1 | |||
- flake8-annotations |
There was a problem hiding this comment.
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.
…, tests.utils.test_env_site, tests.utils.test_exporter
…ests.utils.test_password_manager, tests.utils.test_patterns, tests.utils.test_pip, tests.utils.setup_reader
a661bca
to
5214721
Compare
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. |
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.