Pylint

Latest version: v3.1.0

Safety actively analyzes 627119 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 19

2.16.0b1

New beta release following a performance fix in the new pointless exception statement checks in https://github.com/PyCQA/pylint/issues/8073 and a false positive fixed in the unreleased consider-using-augmented-assign check in https://github.com/PyCQA/pylint/pull/8088. We're also using the latest version of astroid (2.13.3).

The complete changelog will be published when the actual 2.16.0 is released.

2.16.0b0

This is the beta version of 2.16.0 the complete changelog will be published when the actual 2.16.0 is released.

In 2.16.0 we added aggregation and composition understanding in ``pyreverse``, and a way to clear the cache in between run in server mode (originally for the VS Code integration). Apart from the bug fixes there's also a lot of new checks, and new extensions that have been asked for for a long time that were implemented.

If you want to benefit from all the new checks load the following plugins:

pylint.extensions.dict_init_mutate,
pylint.extensions.dunder,
pylint.extensions.typing,
pylint.extensions.magic_value,

We still welcome any community effort to help review, integrate, and add good/bad examples to the doc for https://github.com/PyCQA/pylint/issues/5953. This should be doable without any ``pylint`` or ``astroid`` knowledge, so this is the perfect entrypoint if you want to contribute to ``pylint`` or open source without any experience with our code!

Last but not least clavedeluna and nickdrozd became triagers, welcome to the team !

2.15.10

False Positives Fixed
---------------------

- Fix ``use-sequence-for-iteration`` when unpacking a set with ``*``.

Closes 5788

- Fix false positive ``assigning-non-slot`` when a class attribute is
re-assigned.

Closes 6001

- Fixes ``used-before-assignment`` false positive when the walrus operator
is used in a ternary operator.

Closes 7779

- Prevent ``used-before-assignment`` when imports guarded by ``if
TYPE_CHECKING``
are guarded again when used.

Closes 7979



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

- Using custom braces in ``msg-template`` will now work properly.

Closes 5636

2.15.9

False Positives Fixed
---------------------

- Fix false-positive for ``used-before-assignment`` in pattern matching with a guard.

Closes 5327

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

- Pylint will no longer deadlock if a parallel job is killed but fail immediately instead.

Closes 3899

- When pylint exit due to bad arguments being provided the exit code will now be the expected ``32``.

Refs 7931

- Fixes a ``ModuleNotFound`` exception when running pylint on a Django project with the ``pylint_django`` plugin enabled.

Closes 7938

2.15.8

False Positives Fixed
---------------------

- Document a known false positive for ``useless-suppression`` when disabling
``line-too-long`` in a module with only comments and no code.

Closes 3368

- Fix ``logging-fstring-interpolation`` false positive raised when logging and f-string with ``%s`` formatting.

Closes 4984

- Fixes false positive ``abstract-method`` on Protocol classes.

Closes 7209

- Fix ``missing-param-doc`` false positive when function parameter has an escaped underscore.

Closes 7827

- ``multiple-statements`` no longer triggers for function stubs using inlined ``...``.

Closes 7860

2.15.7

False Positives Fixed
---------------------

- Fix ``deprecated-method`` false positive when alias for method is similar to
name of deprecated method.

Closes 5886

- Fix a false positive for ``used-before-assignment`` for imports guarded by
``typing.TYPE_CHECKING`` later used in variable annotations.

Closes 7609



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

- Pylint will now filter duplicates given to it before linting. The output
should be the same whether a file is given/discovered multiple times or not.

Closes 6242, 4053

- Fixes a crash in ``stop-iteration-return`` when the ``next`` builtin is
called without arguments.

Closes 7828

Page 5 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.