Skip to content

[pre-commit] Transition from flake8/autoflake to ruff #8372

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

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Mar 2, 2023

Type of Changes

Type
🔨 Refactoring

Description

ruff is faster and support pyproject.toml and python 3.7. flake8-typing-import is not implemented but it checks for things in python version < 3.7.2 that we do not support. Fix main following #8362 that broke it.

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Mar 2, 2023
ruff is faster and support pyproject.toml. flake8-typing-import
is not implemented but it checks for things in python version
< 3.7.2 that we do not support.
@Pierre-Sassoulas Pierre-Sassoulas mentioned this pull request Mar 2, 2023
@ollie-iterators
Copy link
Contributor

ollie-iterators commented Mar 2, 2023

It's strange that there is no security check that forces the user to be up to date with the master/main branch before committing a pull request to the master/main branch.

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #8372 (184a244) into main (5337e62) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8372   +/-   ##
=======================================
  Coverage   95.56%   95.56%           
=======================================
  Files         178      178           
  Lines       18766    18766           
=======================================
  Hits        17933    17933           
  Misses        833      833           
Impacted Files Coverage Δ
pylint/config/config_initialization.py 100.00% <ø> (ø)

@Pierre-Sassoulas
Copy link
Member Author

The continuous integration takes a long time and it's very rare that a problem happen. When it happens we fix main and it does not impact contributors too much. So it's a balance we try to achieve between performance and not breaking main.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 4de6545 into pylint-dev:main Mar 2, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the fix-main-move-to-ruff branch March 2, 2023 20:20
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 Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants