Skip to content

Commit

Permalink
Bump pylint to 3.3.0, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Sep 20, 2024
1 parent 78f3dfa commit 6350dfa
Show file tree
Hide file tree
Showing 25 changed files with 162 additions and 87 deletions.
18 changes: 16 additions & 2 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ contributors:
* Added new useless-return checker,
* Added new try-except-raise checker
- theirix <[email protected]>
- correctmost <[email protected]>
- Téo Bouvard <[email protected]>
- Stavros Ntentos <[email protected]>
- Nicolas Boulenguez <[email protected]>
Expand Down Expand Up @@ -210,6 +211,7 @@ contributors:
- wtracy <[email protected]>
- jessebrennan <[email protected]>
- chohner <[email protected]>
- aatle <[email protected]>
- Tiago Honorato <[email protected]>
- Steven M. Vascellaro <[email protected]>
- Robin Tweedie <[email protected]>
Expand Down Expand Up @@ -264,6 +266,7 @@ contributors:
- Samuel FORESTIER <[email protected]>
- Rémi Cardona <[email protected]>
- Ryan Ozawa <[email protected]>
- Roger Sheu <[email protected]>
- Raphael Gaschignard <[email protected]>
- Ram Rachum <[email protected]> (cool-RR)
- Radostin Stoyanov <[email protected]>
Expand All @@ -287,9 +290,11 @@ contributors:
- Justin Li <[email protected]>
- John Kirkham <[email protected]>
- Jens H. Nielsen <[email protected]>
- Jake Lishman <[email protected]>
- Ioana Tagirta <[email protected]>: fix bad thread instantiation check
- Ikraduya Edian <[email protected]>: Added new checks 'consider-using-generator' and 'use-a-generator'.
- Hugues Bruant <[email protected]>
- Hashem Nasarat <[email protected]>
- Harut <[email protected]>
- Grygorii Iermolenko <[email protected]>
- Grizzly Nyo <[email protected]>
Expand Down Expand Up @@ -317,9 +322,11 @@ contributors:
- Ben Green <[email protected]>
- Batuhan Taskaya <[email protected]>
- Alexander Kapshuna <[email protected]>
- Akhil Kamat <[email protected]>
- Adam Parkin <[email protected]>
- 谭九鼎 <[email protected]>
- Łukasz Sznuk <[email protected]>
- zasca <[email protected]>
- y2kbugger <[email protected]>
- vinnyrose <[email protected]>
- ttenhoeve-aa <[email protected]>
Expand Down Expand Up @@ -382,10 +389,12 @@ contributors:
- Trevor Bekolay <[email protected]>
* Added --list-msgs-enabled command
- Tomer Chachamu <[email protected]>: simplifiable-if-expression
- Tomasz Michalski <[email protected]>
- Tomasz Magulski <[email protected]>
- Tom <[email protected]>
- Tim Hatch <[email protected]>
- Tim Gates <[email protected]>
- Tianyu Chen <[email protected]>
- Théo Battrel <[email protected]>
- Thomas Benhamou <[email protected]>
- Theodore Ni <[email protected]>
Expand All @@ -412,6 +421,7 @@ contributors:
- Ryan McGuire <[email protected]>
- Ry4an Brase <[email protected]>
- Ruro <[email protected]>
- Roshan Shetty <[email protected]>
- Roman Ivanov <[email protected]>
- Robert Schweizer <[email protected]>
- Reverb Chu <[email protected]>
Expand All @@ -438,6 +448,7 @@ contributors:
- Oisín Moran <[email protected]>
- Obscuron <[email protected]>
- Noam Yorav-Raphael <[email protected]>
- Noah-Agnel <[email protected]>
- Nir Soffer <[email protected]>
- Niko Wenselowski <[email protected]>
- Nikita Sobolev <[email protected]>
Expand Down Expand Up @@ -515,15 +526,13 @@ contributors:
- James Broadhead <[email protected]>
- Jakub Kulík <[email protected]>
- Jakob Normark <[email protected]>
- Jake Lishman <[email protected]>
- Jacques Kvam <[email protected]>
- Jace Browning <[email protected]>: updated default report format with clickable paths
- JT Olds <[email protected]>
- Iggy Eom <[email protected]>
- Hayden Richards <[email protected]>
* Fixed "no-self-use" for async methods
* Fixed "docparams" extension for async functions and methods
- Hashem Nasarat <[email protected]>
- Harshil <[email protected]>
- Harry <[email protected]>
- Grégoire <[email protected]>
Expand All @@ -537,6 +546,7 @@ contributors:
- Eric Froemling <[email protected]>
- Emmanuel Chaudron <[email protected]>
- Elizabeth Bott <[email protected]>
- Ekin Dursun <[email protected]>
- Eisuke Kawashima <[email protected]>
- Edward K. Ream <[email protected]>
- Edgemaster <[email protected]>
Expand All @@ -547,6 +557,7 @@ contributors:
- Dmytro Kyrychuk <[email protected]>
- Dionisio E Alonso <[email protected]>
- DetachHead <[email protected]>
- Dennis Keck <[email protected]>
- Denis Laxalde <[email protected]>
- David Lawson <[email protected]>
- David Cain <[email protected]>
Expand Down Expand Up @@ -582,12 +593,14 @@ contributors:
- Benjamin Graham <[email protected]>
- Benedikt Morbach <[email protected]>
- Ben Greiner <[email protected]>
- Barak Shoshany <[email protected]>
- Banjamin Freeman <[email protected]>
- Avram Lubkin <[email protected]>
- Athos Ribeiro <[email protected]>: Fixed dict-keys-not-iterating false positive for inverse containment checks
- Arun Persaud <[email protected]>
- Arthur Lutz <[email protected]>
- Antonio Ossa <[email protected]>
- Antonio Gámiz Delgado <[email protected]>
- Anthony VEREZ <[email protected]>
- Anthony Tan <[email protected]>
- Anthony Foglia <[email protected]> (Google): Added simple string slots check.
Expand Down Expand Up @@ -617,6 +630,7 @@ contributors:
- Adrian Chirieac <[email protected]>
- Aditya Gupta <[email protected]> (adityagupta1089)
* Added ignore_signatures to duplicate checker
- Adam Tuft <[email protected]>
- Adam Dangoor <[email protected]>
- 243f6a88 85a308d3 <[email protected]>

Expand Down
142 changes: 140 additions & 2 deletions doc/whatsnew/3/3.3/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,148 @@
:maxdepth: 2

:Release:3.3
:Date: TBA
:Date: 2024-09-20

Summary -- Release highlights
=============================


.. towncrier release notes start
What's new in Pylint 3.3.0?
---------------------------
Release date: 2024-09-20


Changes requiring user actions
------------------------------

- We migrated ``symilar`` to argparse, from getopt, so the error and help output changed
(for the better). We exit with 2 instead of sometime 1, sometime 2. The error output
is not captured by the runner anymore. It's not possible to use a value for the
boolean options anymore (``--ignore-comments 1`` should become ``--ignore-comments``).

Refs #9731 (`#9731 <https://github.com/pylint-dev/pylint/issues/9731>`_)



New Features
------------

- 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__`.

Refs #9499 (`#9499 <https://github.com/pylint-dev/pylint/issues/9499>`_)



New Checks
----------

- Added `too-many-positional-arguments` to allow distinguishing the configuration for too many
total arguments (with keyword-only params specified after `*`) from the configuration
for too many positional-or-keyword or positional-only arguments.

As part of evaluating whether this check makes sense for your project, ensure you
adjust the value of `--max-positional-arguments`.

Closes #9099 (`#9099 <https://github.com/pylint-dev/pylint/issues/9099>`_)

- Add `using-exception-group-in-unsupported-version` and
`using-generic-type-syntax-in-unsupported-version` for uses of Python 3.11+ or
3.12+ features on lower supported versions provided with `--py-version`.

Closes #9791 (`#9791 <https://github.com/pylint-dev/pylint/issues/9791>`_)

- Add `using-assignment-expression-in-unsupported-version` for uses of `:=` (walrus operator)
on Python versions below 3.8 provided with `--py-version`.

Closes #9820 (`#9820 <https://github.com/pylint-dev/pylint/issues/9820>`_)

- Add `using-positional-only-args-in-unsupported-version` for uses of positional-only args on
Python versions below 3.8 provided with `--py-version`.

Closes #9823 (`#9823 <https://github.com/pylint-dev/pylint/issues/9823>`_)

- Add ``unnecessary-default-type-args`` to the ``typing`` extension to detect the use
of unnecessary default type args for ``typing.Generator`` and ``typing.AsyncGenerator``.

Refs #9938 (`#9938 <https://github.com/pylint-dev/pylint/issues/9938>`_)



False Negatives Fixed
---------------------

- Fix computation of never-returning function: `Never` is handled in addition to `NoReturn`, and priority is given to the explicit `--never-returning-functions` option.

Closes #7565. (`#7565 <https://github.com/pylint-dev/pylint/issues/7565>`_)

- Fix a false negative for `await-outside-async` when await is inside Lambda.

Refs #9653 (`#9653 <https://github.com/pylint-dev/pylint/issues/9653>`_)

- Fix a false negative for ``duplicate-argument-name`` by including ``positional-only``, ``*args`` and ``**kwargs`` arguments in the check.

Closes #9669 (`#9669 <https://github.com/pylint-dev/pylint/issues/9669>`_)

- Fix false negative for `multiple-statements` when multiple statements are present on `else` and `finally` lines of `try`.

Refs #9759 (`#9759 <https://github.com/pylint-dev/pylint/issues/9759>`_)

- Fix false negatives when `isinstance` does not have exactly two arguments.
pylint now emits a `too-many-function-args` or `no-value-for-parameter`
appropriately for `isinstance` calls.

Closes #9847 (`#9847 <https://github.com/pylint-dev/pylint/issues/9847>`_)



Other Bug Fixes
---------------

- `--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`.

Closes #9403 (`#9403 <https://github.com/pylint-dev/pylint/issues/9403>`_)

- Impossible to compile regexes for paths in the configuration or argument given to pylint won't crash anymore but
raise an argparse error and display the error message from ``re.compile`` instead.

Closes #9680 (`#9680 <https://github.com/pylint-dev/pylint/issues/9680>`_)

- Fix a bug where a ``tox.ini`` file with pylint configuration was ignored and it exists in the current directory.

``.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.

Closes #9727 (`#9727 <https://github.com/pylint-dev/pylint/issues/9727>`_)

- Improve file discovery for directories that are not python packages.

Closes #9764 (`#9764 <https://github.com/pylint-dev/pylint/issues/9764>`_)



Other Changes
-------------

- Remove support for launching pylint with Python 3.8.
Code that supports Python 3.8 can still be linted with the ``--py-version=3.8`` setting.

Refs #9774 (`#9774 <https://github.com/pylint-dev/pylint/issues/9774>`_)

- Add support for Python 3.13.

Refs #9852 (`#9852 <https://github.com/pylint-dev/pylint/issues/9852>`_)



Internal Changes
----------------

- All variables, classes, functions and file names containing the word 'similar', when it was,
in fact, referring to 'symilar' (the standalone program for the duplicate-code check) were renamed
to 'symilar'.

Closes #9734 (`#9734 <https://github.com/pylint-dev/pylint/issues/9734>`_)

- 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.

Refs #9925 (`#9925 <https://github.com/pylint-dev/pylint/issues/9925>`_)
3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/7565.false_negative

This file was deleted.

8 changes: 0 additions & 8 deletions doc/whatsnew/fragments/9099.new_check

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9403.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9499.feature

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9653.false_negative

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9669.false_negative

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/9680.bugfix

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/9727.bugfix

This file was deleted.

6 changes: 0 additions & 6 deletions doc/whatsnew/fragments/9731.user_action

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/9734.internal

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9759.false_negative

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9764.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/9774.other

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/9791.new_check

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/9820.new_check

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/9823.new_check

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/9847.false_negative

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9852.other

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/9925.internal

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/9938.new_check

This file was deleted.

2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "3.3.0-dev0"
__version__ = "3.3.0"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
Loading

0 comments on commit 6350dfa

Please sign in to comment.