-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Bump py-version and add python-typing-update to CI #6326
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
Conversation
Pull Request Test Coverage Report for Build 2169749732
π - Coveralls |
.pre-commit-config.yaml
Outdated
- repo: https://github.com/cdce8p/python-typing-update | ||
rev: v0.4.1 | ||
hooks: | ||
- id: python-typing-update | ||
stages: [manual] | ||
additional_dependencies: | ||
- "black==22.3.0" | ||
args: | ||
- --py37-plus | ||
- --force | ||
- --keep-updates | ||
- --black | ||
files: ^(pylint)/.+\.py$ |
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.
I don't think we should add this. The existing pylint checks are much better.
.github/workflows/checks.yaml
Outdated
@@ -121,6 +121,7 @@ jobs: | |||
. venv/bin/activate | |||
pip install -e . | |||
pre-commit run pylint --all-files | |||
pre-commit run --hook-stage manual python-typing-update --all-files |
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.
Same here
.pre-commit-config.yaml
Outdated
- repo: https://github.com/cdce8p/python-typing-update | ||
rev: v0.4.1 | ||
hooks: | ||
- id: python-typing-update | ||
stages: [manual] | ||
additional_dependencies: | ||
- "black==22.3.0" | ||
args: | ||
- --py37-plus | ||
- --force | ||
- --keep-updates | ||
- --black | ||
files: ^(pylint)/.+\.py$ |
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.
I agree with what Marc said earlier, that pylint's typing extension is vastly more efficient. I would rather add the typing extension to our pylintrc. I think we should only handle the bump of the py-version in this MR and discuss the pre-commit hook in another one.
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.
I would rather add the typing extension to our pylintrc.
It's already enabled. We just need to update py-version
.
I think we should only handle the bump of the py-version in this MR and discuss the pre-commit hook in another one.
AFAICT the typing changes here are from #6325.
With the typing extension, we don't need to add any other pre-commit hook π
Changed to only the |
Type of Changes
Description
We can tick off two things in #4683 π