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 flake8 in pre-commit configuration #971

Merged
merged 10 commits into from May 1, 2021

Conversation

Pierre-Sassoulas
Copy link
Member

Description

Fix the legacy problem with flake8, some of them quite ancient (python 2.6 deprecation!) and add an automated checker in pre-commit configuration.

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ πŸ”¨ Refactoring

@Pierre-Sassoulas Pierre-Sassoulas added Enhancement ✨ Improvement to a component task labels Apr 24, 2021
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-flake8-in-pre-commit-configuration branch from 1180dbd to 50785f0 Compare April 24, 2021 11:59
@cdce8p cdce8p self-requested a review April 24, 2021 12:08
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-flake8-in-pre-commit-configuration branch 2 times, most recently from 9296406 to aa6ea8f Compare April 24, 2021 13:17
@Pierre-Sassoulas Pierre-Sassoulas changed the title Add flake8 in pre-commit configuration Draft: Add flake8 in pre-commit configuration Apr 29, 2021
@Pierre-Sassoulas
Copy link
Member Author

Ready, but need #972 to be merged first.

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-flake8-in-pre-commit-configuration branch from aa6ea8f to dad2dec Compare May 1, 2021 12:18
@Pierre-Sassoulas Pierre-Sassoulas changed the title Draft: Add flake8 in pre-commit configuration Add flake8 in pre-commit configuration May 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the add-flake8-in-pre-commit-configuration branch from dad2dec to f3bae89 Compare May 1, 2021 12:20
Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

LGTM. Just one small comment

.flake8 Outdated Show resolved Hide resolved
This could prevent proper parsing, see https://github.com/PyCQA/astroid/pull/971/files#r624557026

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
@Pierre-Sassoulas Pierre-Sassoulas merged commit b80c3ec into master May 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the add-flake8-in-pre-commit-configuration branch May 1, 2021 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants