Skip to content

Conversation

@DanielNoord
Copy link
Collaborator

@DanielNoord DanielNoord commented Oct 12, 2025

Type of Changes

Type
🔨 Refactoring

Description

Due to #10637 I took an interest in our current dependency on isort.
Yesterday I made a new release for isort which pylint should just support so I bumped the version constraints.

At the same time we should remove the more than 6 years old version, because it also doesn't know about the stdlib imports of newer Python versions that we do support.

This means we can simplify our code a bit, which should help if we ever decide to fully remove isort or replace it.

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Oct 12, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.0.0 milestone Oct 12, 2025
@Pierre-Sassoulas Pierre-Sassoulas changed the title Clean up code related to isort Drop isort 4, and clean up the resulting code Oct 12, 2025
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Great !

@DanielNoord
Copy link
Collaborator Author

Forgot to remove one ignore, @Pierre-Sassoulas please review again 😅

@codecov
Copy link

codecov bot commented Oct 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.96%. Comparing base (7be0b8f) to head (3c444d6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #10641      +/-   ##
==========================================
+ Coverage   95.94%   95.96%   +0.02%     
==========================================
  Files         176      176              
  Lines       19519    19502      -17     
==========================================
- Hits        18727    18715      -12     
+ Misses        792      787       -5     
Files with missing lines Coverage Δ
pylint/checkers/imports.py 94.88% <100.00%> (ø)
pylint/checkers/utils.py 95.97% <100.00%> (ø)
pylint/utils/__init__.py 100.00% <ø> (ø)
pylint/utils/utils.py 88.95% <ø> (+1.65%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 3c444d6

@DanielNoord DanielNoord merged commit 6ce6032 into pylint-dev:main Oct 12, 2025
44 checks passed
@DanielNoord DanielNoord deleted the better-isort branch October 12, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking changes for 4.0 🦤 Maintenance Discussion or action around maintaining pylint or the dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants