Skip to content

Commit 88e1ab7

Browse files
Bump pylint to 4.0.5, update changelog (#10860)
1 parent d96d489 commit 88e1ab7

12 files changed

Lines changed: 53 additions & 28 deletions

File tree

CONTRIBUTORS.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ contributors:
313313
- Grizzly Nyo <[email protected]>
314314
- Gabriel R. Sezefredo <[email protected]>: Fixed "exception-escape" false positive with generators
315315
- Filipe Brandenburger <[email protected]>
316+
- Felix Preuschoff <[email protected]>
316317
- Fantix King <[email protected]> (UChicago)
317318
- Eric McDonald <[email protected]>
318319
- Elias Dorneles <[email protected]>: minor adjust to config defaults and docs
@@ -494,6 +495,7 @@ contributors:
494495
- Michael Giuffrida <[email protected]>
495496
- Melvin Hazeleger <[email protected]>
496497
- Meltem Kenis <[email protected]>
498+
- Mehraz Hossain Rumman <[email protected]>
497499
- Mehdi Drissi <[email protected]>
498500
- Matěj Grabovský <[email protected]>
499501
- Matthijs Blom <[email protected]>
@@ -524,6 +526,7 @@ contributors:
524526
- Kayran Schmidt <[email protected]>
525527
- Karthik Nadig <[email protected]>
526528
- Jürgen Hermann <[email protected]>
529+
- Julfried <[email protected]>
527530
- Josselin Feist <[email protected]>
528531
- Jonathan Kotta <[email protected]>
529532
- John Paraskevopoulos <[email protected]>: add 'differing-param-doc' and 'differing-type-doc'
@@ -565,7 +568,6 @@ contributors:
565568
- Giuseppe Valente <[email protected]>
566569
- Gary Tyler McLeod <[email protected]>
567570
- Felix von Drigalski <[email protected]>
568-
- Felix Preuschoff <[email protected]>
569571
- Fabrice Douchant <[email protected]>
570572
- Fabio Natali <[email protected]>
571573
- Fabian Damken <[email protected]>

doc/user_guide/checkers/features.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,8 @@ Stdlib checker Messages
10851085
:unspecified-encoding (W1514): *Using open without explicitly specifying an encoding*
10861086
It is better to specify an encoding when opening documents. Using the system
10871087
default implicitly can create problems on other operating systems. See
1088-
https://peps.python.org/pep-0597/
1088+
https://peps.python.org/pep-0597/ This message can't be emitted when using
1089+
Python >= 3.15.
10891090
:forgotten-debug-statement (W1515): *Leaving functions creating breakpoints in production code is not recommended*
10901091
Calls to breakpoint(), sys.breakpointhook() and pdb.set_trace() should be
10911092
removed from code that is not actively being debugged.

doc/whatsnew/4/4.0/index.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,52 @@ to your liking.
7474

7575
.. towncrier release notes start
7676
77+
What's new in Pylint 4.0.5?
78+
---------------------------
79+
Release date: 2026-02-20
80+
81+
82+
False Positives Fixed
83+
---------------------
84+
85+
- Fix possibly-used-before-assignment false positive when using self.fail() in tests.
86+
87+
Closes #10743 (`#10743 <https://github.com/pylint-dev/pylint/issues/10743>`_)
88+
89+
- Fixed false positive for ``logging-unsupported-format`` when no arguments are provided to logging functions.
90+
91+
According to Python's logging documentation, no formatting is performed when no arguments are supplied, so strings like ``logging.error("%test")`` are valid.
92+
93+
Closes #10752 (`#10752 <https://github.com/pylint-dev/pylint/issues/10752>`_)
94+
95+
- Fix a false positive for ``invalid-name`` where a dataclass field typed with ``Final``
96+
was evaluated against the ``class_const`` regex instead of the ``class_attribute`` regex.
97+
98+
Closes #10790 (`#10790 <https://github.com/pylint-dev/pylint/issues/10790>`_)
99+
100+
- Avoid emitting `unspecified-encoding` (W1514) when `py-version` is 3.15+.
101+
102+
Refs #10791 (`#10791 <https://github.com/pylint-dev/pylint/issues/10791>`_)
103+
104+
105+
106+
Other Bug Fixes
107+
---------------
108+
109+
- Fix `--known_third_party` config being ignored.
110+
111+
Closes #10801 (`#10801 <https://github.com/pylint-dev/pylint/issues/10801>`_)
112+
113+
- Fixed dynamic color mapping for "fail-on" messages when using multiple reporter/output formats.
114+
115+
Closes #10825 (`#10825 <https://github.com/pylint-dev/pylint/issues/10825>`_)
116+
117+
- dependency on isort is now set to <9, permitting to use isort 8.
118+
119+
Closes #10857 (`#10857 <https://github.com/pylint-dev/pylint/issues/10857>`_)
120+
121+
122+
77123
What's new in Pylint 4.0.4?
78124
--------------------------------
79125
Release date: 2025-11-30

doc/whatsnew/fragments/10743.false_positive

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/10752.false_positive

Lines changed: 0 additions & 5 deletions
This file was deleted.

doc/whatsnew/fragments/10790.false_positive

Lines changed: 0 additions & 4 deletions
This file was deleted.

doc/whatsnew/fragments/10791.false_positive

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/10801.bugfix

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/10825.bugfix

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/10857.bugfix

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)