Pylint

Latest version: v3.1.0

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

Scan your dependencies

Page 11 of 19

2.10.1

Not secure
* pylint does not crash when PYLINT_HOME does not exist.

Closes 4883

2.10.0

Not secure
* pyreverse: add option to produce colored output.

Closes 4488

* pyreverse: add output in PlantUML format.

Closes 4498

* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.

Closes 4748

* pylint does not crash with a traceback anymore when a file is problematic. It
creates a template text file for opening an issue on the bug tracker instead.
The linting can go on for other non problematic files instead of being impossible.

* pyreverse: Show class has-a relationships inferred from the type-hint

Closes 4744

* Fixed a crash when importing beyond the top level package during ``import-error``
message creation

Closes 4775

* Added ``ignored-parents`` option to the design checker to ignore specific
classes from the ``too-many-ancestors`` check (R0901).

Partially closes 3057

* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding

Closes 3826

* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``.

Close 4120
Close 4118

* Don't emit ``no-member`` error if guarded behind if statement.

Ref 1162
Closes 1990
Closes 4168

* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.

Closes 3878

* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]``

Closes 4365

* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}``

Closes 4365

* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block.

Closes 4366

* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used.

Closes 4367

* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found

Closes 3692

* Fix false-positive of ``unused-private-member`` when using nested functions in a class

Closes 4673

* Fix crash for ``unused-private-member`` that occurred with nested attributes.

Closes 4755

* Fix a false positive for ``unused-private-member`` with class names

Closes 4681

* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension.

Closes 2818
Closes 3249
Closes 3608
Closes 4346

* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced

Closes 4042


* Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter.

Closes 4778

* Fix false negative for ``used-before-assignment`` when the variable is assigned
in an exception handler, but used outside of the handler.

Closes 626

* Added ``disable-next`` option: allows using ` pylint: disable-next=msgid` to disable a message for the following line

Closes 1682

* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string

Closes 4102

* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions,
and function default argument expressions. Also handle basic variable shadowing.

Closes 2846
Closes 3107

* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
both ``unused-variable`` and ``used-before-assignment`` are disabled.

* Fix false postive for ``invalid-all-format`` if the list or tuple builtin functions are used

Closes 4711

* Config files can now contain environment variables

Closes 3839

* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node

Closes 4828

* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``.

* ``CodeStyleChecker``

* Limit ``consider-using-tuple`` to be emitted only for in-place defined ``lists``.

* Emit ``consider-using-tuple`` even if list contains a ``starred`` expression.

* Ignore decorators lines by similarities checker when ignore signatures flag enabled

Closes 4839

* Allow ``true`` and ``false`` values in ``pylintrc`` for better compatibility with ``toml`` config.


* Class methods' signatures are ignored the same way as functions' with similarities "ignore-signatures" option enabled

Closes 4653

* Improve performance when inferring ``Call`` nodes, by utilizing caching.

* Improve error message for invalid-metaclass when the node is an Instance.

2.9.6

Not secure
* Fix a false positive ``undefined-variable`` when variable name in decoration
matches function argument

Closes 3791

2.9.5

Not secure
* Fix a crash when there would be a 'TypeError object does not support
item assignment' in the code we parse.

Closes 4439

* Fix crash if a callable returning a context manager was assigned to a list or dict item

Closes 4732

* Fix a crash when a AttributeInferenceError was not handled properly when
failing to infer the real name of an import in astroid.

Closes 4692

2.9.4

Not secure
* Added ``time.clock`` to deprecated functions/methods for python 3.3

* Fix bug in which --fail-on can return a zero exit code even when the specified issue is present

Closes 4296
Closes 3363

* Fix hard failure when handling missing attribute in a class with duplicated bases

Closes 4687

* Fix false-positive ``consider-using-with`` (R1732) if a ternary conditional is used together with ``with``

Closes 4676

* Fix false-positive ``deprecated-module`` when relative import uses deprecated module name.

Closes 4629

* Fix false-positive ``consider-using-with`` (R1732) if ``contextlib.ExitStack`` takes care of calling the ``__exit__`` method

Closes 4654

* Fix a false positive for ``unused-private-member`` when mutating a private attribute
with ``cls``

Closes 4657

* Fix ignored empty functions by similarities checker with "ignore-signatures" option enabled

Closes 4652

* Fix false-positive of ``use-maxsplit-arg`` when index is incremented in
a loop

Closes 4664

* Don't emit ``cyclic-import`` message if import is guarded by ``typing.TYPE_CHECKING``.

Closes 3525

* Fix false-positive ``not-callable`` with alternative ``TypedDict`` syntax

Closes 4715

* Clarify documentation for consider-using-from-import

* Don't emit ``unreachable`` warning for empty generator functions

Closes 4698

* Don't emit ``import-error``, ``no-name-in-module``, and ``ungrouped-imports``
for imports guarded by ``sys.version_info`` or ``typing.TYPE_CHECKING``.

Closes 3285
Closes 3382

* Fix ``invalid-overridden-method`` with nested property

Closes 4368

* Fix false-positive of ``unused-private-member`` when using ``__new__`` in a class

Closes 4668

* No longer emit ``consider-using-with`` for ``ThreadPoolExecutor`` and ``ProcessPoolExecutor``
as they have legitimate use cases without a ``with`` block.

Closes 4689

* Fix crash when inferring variables assigned in match patterns

Closes 4685

* Fix a crash when a StopIteration was raised when inferring
a faulty function in a context manager.

Closes 4723

2.9.3

Not secure
* Fix a crash that happened when analyzing empty function with docstring
in the ``similarity`` checker.

Closes 4648

* The ``similarity`` checker no longer add three trailing whitespaces for
empty lines in its report.

Page 11 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.