Skip to content

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

Merged
merged 4 commits into from
Apr 14, 2022

Conversation

DanielNoord
Copy link
Collaborator

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Write a good description on what the PR does.

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

We can tick off two things in #4683 πŸ˜„

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Apr 14, 2022
@DanielNoord DanielNoord added this to the 2.14.0 milestone Apr 14, 2022
@DanielNoord DanielNoord requested a review from cdce8p April 14, 2022 18:18
@coveralls
Copy link

coveralls commented Apr 14, 2022

Pull Request Test Coverage Report for Build 2169749732

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.376%

Totals Coverage Status
Change from base Build 2169544822: 0.0%
Covered Lines: 15972
Relevant Lines: 17105

πŸ’› - Coveralls

Comment on lines 104 to 116
- 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$
Copy link
Member

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.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

Same here

Comment on lines 104 to 116
- 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$
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas Apr 14, 2022

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.

Copy link
Member

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 πŸ˜„

@DanielNoord
Copy link
Collaborator Author

Changed to only the py-version change πŸ‘

@DanielNoord DanielNoord merged commit d138035 into pylint-dev:main Apr 14, 2022
@DanielNoord DanielNoord deleted the 3.7-3 branch April 14, 2022 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants