Skip to content

Commit 6350dfa

Browse files
Bump pylint to 3.3.0, update changelog
1 parent 78f3dfa commit 6350dfa

25 files changed

+162
-87
lines changed

CONTRIBUTORS.txt

+16-2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ contributors:
158158
* Added new useless-return checker,
159159
* Added new try-except-raise checker
160160
- theirix <[email protected]>
161+
- correctmost <[email protected]>
161162
- Téo Bouvard <[email protected]>
162163
- Stavros Ntentos <[email protected]>
163164
- Nicolas Boulenguez <[email protected]>
@@ -210,6 +211,7 @@ contributors:
210211
211212
- jessebrennan <[email protected]>
212213
- chohner <[email protected]>
214+
213215
- Tiago Honorato <[email protected]>
214216
- Steven M. Vascellaro <[email protected]>
215217
- Robin Tweedie <[email protected]>
@@ -264,6 +266,7 @@ contributors:
264266
- Samuel FORESTIER <[email protected]>
265267
- Rémi Cardona <[email protected]>
266268
- Ryan Ozawa <[email protected]>
269+
- Roger Sheu <[email protected]>
267270
- Raphael Gaschignard <[email protected]>
268271
- Ram Rachum <[email protected]> (cool-RR)
269272
- Radostin Stoyanov <[email protected]>
@@ -287,9 +290,11 @@ contributors:
287290
- Justin Li <[email protected]>
288291
- John Kirkham <[email protected]>
289292
- Jens H. Nielsen <[email protected]>
293+
- Jake Lishman <[email protected]>
290294
- Ioana Tagirta <[email protected]>: fix bad thread instantiation check
291295
- Ikraduya Edian <[email protected]>: Added new checks 'consider-using-generator' and 'use-a-generator'.
292296
- Hugues Bruant <[email protected]>
297+
- Hashem Nasarat <[email protected]>
293298
294299
- Grygorii Iermolenko <[email protected]>
295300
- Grizzly Nyo <[email protected]>
@@ -317,9 +322,11 @@ contributors:
317322
- Ben Green <[email protected]>
318323
- Batuhan Taskaya <[email protected]>
319324
- Alexander Kapshuna <[email protected]>
325+
- Akhil Kamat <[email protected]>
320326
- Adam Parkin <[email protected]>
321327
- 谭九鼎 <[email protected]>
322328
- Łukasz Sznuk <[email protected]>
329+
323330
- y2kbugger <[email protected]>
324331
- vinnyrose <[email protected]>
325332
- ttenhoeve-aa <[email protected]>
@@ -382,10 +389,12 @@ contributors:
382389
- Trevor Bekolay <[email protected]>
383390
* Added --list-msgs-enabled command
384391
- Tomer Chachamu <[email protected]>: simplifiable-if-expression
392+
- Tomasz Michalski <[email protected]>
385393
- Tomasz Magulski <[email protected]>
386394
387395
- Tim Hatch <[email protected]>
388396
- Tim Gates <[email protected]>
397+
- Tianyu Chen <[email protected]>
389398
- Théo Battrel <[email protected]>
390399
- Thomas Benhamou <[email protected]>
391400
- Theodore Ni <[email protected]>
@@ -412,6 +421,7 @@ contributors:
412421
- Ryan McGuire <[email protected]>
413422
- Ry4an Brase <[email protected]>
414423
424+
- Roshan Shetty <[email protected]>
415425
- Roman Ivanov <[email protected]>
416426
- Robert Schweizer <[email protected]>
417427
- Reverb Chu <[email protected]>
@@ -438,6 +448,7 @@ contributors:
438448
- Oisín Moran <[email protected]>
439449
- Obscuron <[email protected]>
440450
- Noam Yorav-Raphael <[email protected]>
451+
- Noah-Agnel <[email protected]>
441452
- Nir Soffer <[email protected]>
442453
- Niko Wenselowski <[email protected]>
443454
- Nikita Sobolev <[email protected]>
@@ -515,15 +526,13 @@ contributors:
515526
- James Broadhead <[email protected]>
516527
- Jakub Kulík <[email protected]>
517528
- Jakob Normark <[email protected]>
518-
- Jake Lishman <[email protected]>
519529
- Jacques Kvam <[email protected]>
520530
- Jace Browning <[email protected]>: updated default report format with clickable paths
521531
- JT Olds <[email protected]>
522532
- Iggy Eom <[email protected]>
523533
- Hayden Richards <[email protected]>
524534
* Fixed "no-self-use" for async methods
525535
* Fixed "docparams" extension for async functions and methods
526-
- Hashem Nasarat <[email protected]>
527536
- Harshil <[email protected]>
528537
529538
- Grégoire <[email protected]>
@@ -537,6 +546,7 @@ contributors:
537546
- Eric Froemling <[email protected]>
538547
- Emmanuel Chaudron <[email protected]>
539548
- Elizabeth Bott <[email protected]>
549+
- Ekin Dursun <[email protected]>
540550
- Eisuke Kawashima <[email protected]>
541551
- Edward K. Ream <[email protected]>
542552
- Edgemaster <[email protected]>
@@ -547,6 +557,7 @@ contributors:
547557
- Dmytro Kyrychuk <[email protected]>
548558
- Dionisio E Alonso <[email protected]>
549559
- DetachHead <[email protected]>
560+
- Dennis Keck <[email protected]>
550561
- Denis Laxalde <[email protected]>
551562
- David Lawson <[email protected]>
552563
- David Cain <[email protected]>
@@ -582,12 +593,14 @@ contributors:
582593
- Benjamin Graham <[email protected]>
583594
- Benedikt Morbach <[email protected]>
584595
- Ben Greiner <[email protected]>
596+
- Barak Shoshany <[email protected]>
585597
- Banjamin Freeman <[email protected]>
586598
- Avram Lubkin <[email protected]>
587599
- Athos Ribeiro <[email protected]>: Fixed dict-keys-not-iterating false positive for inverse containment checks
588600
- Arun Persaud <[email protected]>
589601
- Arthur Lutz <[email protected]>
590602
- Antonio Ossa <[email protected]>
603+
- Antonio Gámiz Delgado <[email protected]>
591604
- Anthony VEREZ <[email protected]>
592605
- Anthony Tan <[email protected]>
593606
- Anthony Foglia <[email protected]> (Google): Added simple string slots check.
@@ -617,6 +630,7 @@ contributors:
617630
- Adrian Chirieac <[email protected]>
618631
- Aditya Gupta <[email protected]> (adityagupta1089)
619632
* Added ignore_signatures to duplicate checker
633+
- Adam Tuft <[email protected]>
620634
- Adam Dangoor <[email protected]>
621635
- 243f6a88 85a308d3 <[email protected]>
622636

doc/whatsnew/3/3.3/index.rst

+140-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,148 @@
77
:maxdepth: 2
88

99
:Release:3.3
10-
:Date: TBA
10+
:Date: 2024-09-20
1111

1212
Summary -- Release highlights
1313
=============================
1414

15-
1615
.. towncrier release notes start
16+
17+
What's new in Pylint 3.3.0?
18+
---------------------------
19+
Release date: 2024-09-20
20+
21+
22+
Changes requiring user actions
23+
------------------------------
24+
25+
- We migrated ``symilar`` to argparse, from getopt, so the error and help output changed
26+
(for the better). We exit with 2 instead of sometime 1, sometime 2. The error output
27+
is not captured by the runner anymore. It's not possible to use a value for the
28+
boolean options anymore (``--ignore-comments 1`` should become ``--ignore-comments``).
29+
30+
Refs #9731 (`#9731 <https://github.com/pylint-dev/pylint/issues/9731>`_)
31+
32+
33+
34+
New Features
35+
------------
36+
37+
- Add new `declare-non-slot` error which reports when a class has a `__slots__` member and a type hint on the class is not present in `__slots__`.
38+
39+
Refs #9499 (`#9499 <https://github.com/pylint-dev/pylint/issues/9499>`_)
40+
41+
42+
43+
New Checks
44+
----------
45+
46+
- Added `too-many-positional-arguments` to allow distinguishing the configuration for too many
47+
total arguments (with keyword-only params specified after `*`) from the configuration
48+
for too many positional-or-keyword or positional-only arguments.
49+
50+
As part of evaluating whether this check makes sense for your project, ensure you
51+
adjust the value of `--max-positional-arguments`.
52+
53+
Closes #9099 (`#9099 <https://github.com/pylint-dev/pylint/issues/9099>`_)
54+
55+
- Add `using-exception-group-in-unsupported-version` and
56+
`using-generic-type-syntax-in-unsupported-version` for uses of Python 3.11+ or
57+
3.12+ features on lower supported versions provided with `--py-version`.
58+
59+
Closes #9791 (`#9791 <https://github.com/pylint-dev/pylint/issues/9791>`_)
60+
61+
- Add `using-assignment-expression-in-unsupported-version` for uses of `:=` (walrus operator)
62+
on Python versions below 3.8 provided with `--py-version`.
63+
64+
Closes #9820 (`#9820 <https://github.com/pylint-dev/pylint/issues/9820>`_)
65+
66+
- Add `using-positional-only-args-in-unsupported-version` for uses of positional-only args on
67+
Python versions below 3.8 provided with `--py-version`.
68+
69+
Closes #9823 (`#9823 <https://github.com/pylint-dev/pylint/issues/9823>`_)
70+
71+
- Add ``unnecessary-default-type-args`` to the ``typing`` extension to detect the use
72+
of unnecessary default type args for ``typing.Generator`` and ``typing.AsyncGenerator``.
73+
74+
Refs #9938 (`#9938 <https://github.com/pylint-dev/pylint/issues/9938>`_)
75+
76+
77+
78+
False Negatives Fixed
79+
---------------------
80+
81+
- Fix computation of never-returning function: `Never` is handled in addition to `NoReturn`, and priority is given to the explicit `--never-returning-functions` option.
82+
83+
Closes #7565. (`#7565 <https://github.com/pylint-dev/pylint/issues/7565>`_)
84+
85+
- Fix a false negative for `await-outside-async` when await is inside Lambda.
86+
87+
Refs #9653 (`#9653 <https://github.com/pylint-dev/pylint/issues/9653>`_)
88+
89+
- Fix a false negative for ``duplicate-argument-name`` by including ``positional-only``, ``*args`` and ``**kwargs`` arguments in the check.
90+
91+
Closes #9669 (`#9669 <https://github.com/pylint-dev/pylint/issues/9669>`_)
92+
93+
- Fix false negative for `multiple-statements` when multiple statements are present on `else` and `finally` lines of `try`.
94+
95+
Refs #9759 (`#9759 <https://github.com/pylint-dev/pylint/issues/9759>`_)
96+
97+
- Fix false negatives when `isinstance` does not have exactly two arguments.
98+
pylint now emits a `too-many-function-args` or `no-value-for-parameter`
99+
appropriately for `isinstance` calls.
100+
101+
Closes #9847 (`#9847 <https://github.com/pylint-dev/pylint/issues/9847>`_)
102+
103+
104+
105+
Other Bug Fixes
106+
---------------
107+
108+
- `--enable` with `--disable=all` now produces an error, when an unknown msg code is used. Internal `pylint` messages are no longer affected by `--disable=all`.
109+
110+
Closes #9403 (`#9403 <https://github.com/pylint-dev/pylint/issues/9403>`_)
111+
112+
- Impossible to compile regexes for paths in the configuration or argument given to pylint won't crash anymore but
113+
raise an argparse error and display the error message from ``re.compile`` instead.
114+
115+
Closes #9680 (`#9680 <https://github.com/pylint-dev/pylint/issues/9680>`_)
116+
117+
- Fix a bug where a ``tox.ini`` file with pylint configuration was ignored and it exists in the current directory.
118+
119+
``.cfg`` and ``.ini`` files containing a ``Pylint`` configuration may now use a section named ``[pylint]``. This enhancement impacts the scenario where these file types are used as defaults when they are present and have not been explicitly referred to, using the ``--rcfile`` option.
120+
121+
Closes #9727 (`#9727 <https://github.com/pylint-dev/pylint/issues/9727>`_)
122+
123+
- Improve file discovery for directories that are not python packages.
124+
125+
Closes #9764 (`#9764 <https://github.com/pylint-dev/pylint/issues/9764>`_)
126+
127+
128+
129+
Other Changes
130+
-------------
131+
132+
- Remove support for launching pylint with Python 3.8.
133+
Code that supports Python 3.8 can still be linted with the ``--py-version=3.8`` setting.
134+
135+
Refs #9774 (`#9774 <https://github.com/pylint-dev/pylint/issues/9774>`_)
136+
137+
- Add support for Python 3.13.
138+
139+
Refs #9852 (`#9852 <https://github.com/pylint-dev/pylint/issues/9852>`_)
140+
141+
142+
143+
Internal Changes
144+
----------------
145+
146+
- All variables, classes, functions and file names containing the word 'similar', when it was,
147+
in fact, referring to 'symilar' (the standalone program for the duplicate-code check) were renamed
148+
to 'symilar'.
149+
150+
Closes #9734 (`#9734 <https://github.com/pylint-dev/pylint/issues/9734>`_)
151+
152+
- Remove old-style classes (Python 2) code and remove check for new-style class since everything is new-style in Python 3. Updated doc for exception checker to remove reference to new style class.
153+
154+
Refs #9925 (`#9925 <https://github.com/pylint-dev/pylint/issues/9925>`_)

doc/whatsnew/fragments/7565.false_negative

-3
This file was deleted.

doc/whatsnew/fragments/9099.new_check

-8
This file was deleted.

doc/whatsnew/fragments/9403.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/9499.feature

-3
This file was deleted.

doc/whatsnew/fragments/9653.false_negative

-3
This file was deleted.

doc/whatsnew/fragments/9669.false_negative

-3
This file was deleted.

doc/whatsnew/fragments/9680.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/9727.bugfix

-5
This file was deleted.

doc/whatsnew/fragments/9731.user_action

-6
This file was deleted.

doc/whatsnew/fragments/9734.internal

-5
This file was deleted.

doc/whatsnew/fragments/9759.false_negative

-3
This file was deleted.

doc/whatsnew/fragments/9764.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/9774.other

-4
This file was deleted.

doc/whatsnew/fragments/9791.new_check

-5
This file was deleted.

doc/whatsnew/fragments/9820.new_check

-4
This file was deleted.

doc/whatsnew/fragments/9823.new_check

-4
This file was deleted.

doc/whatsnew/fragments/9847.false_negative

-5
This file was deleted.

doc/whatsnew/fragments/9852.other

-3
This file was deleted.

doc/whatsnew/fragments/9925.internal

-3
This file was deleted.

doc/whatsnew/fragments/9938.new_check

-4
This file was deleted.

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "3.3.0-dev0"
12+
__version__ = "3.3.0"
1313

1414

1515
def get_numversion_from_version(v: str) -> tuple[int, int, int]:

0 commit comments

Comments
 (0)