Path to this page:
Subject: CVS commit: pkgsrc/devel/py-pylint
From: Adam Ciarcinski
Date: 2021-10-26 14:22:15
Message id: 20211026122215.3862BFA97@cvs.NetBSD.org
Log Message:
py-pylint: updated to 2.11.1
What's New in Pylint 2.11.1?
============================
* ``unspecified-encoding`` now checks the encoding of ``pathlib.Path()`` correctly
What's New in Pylint 2.11.0?
============================
* The python3 porting mode checker and it's ``py3k`` option were removed. You \
can still find it in older pylint
versions.
* ``raising-bad-type`` is now properly emitted when raising a string
* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check:
Emitted when using an in-place defined ``list`` or ``tuple`` to do a \
membership test. ``sets`` are better optimized for that.
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version \
dependant checks.
Will default to whatever Python version pylint is executed with.
* ``CodeStyleChecker``
* Added ``consider-using-assignment-expr``: Emitted when an assignment is \
directly followed by an if statement
and both can be combined by using an assignment expression ``:=``. Requires \
Python 3.8
* Added ``consider-using-f-string``: Emitted when .format() or '%' is being used \
to format a string.
* Fix false positive for ``consider-using-with`` if a context manager is \
assigned to a
variable in different paths of control flow (e. g. if-else clause).
* https is now prefered in the documentation and http://pylint.pycqa.org \
correctly redirect to https://pylint.pycqa.org
* Fix false positive for ``function-redefined`` for simple type annotations
* Fix false positive for ``protected-access`` if a protected member is used in \
type hints of function definitions
* Fix false positive ``dict-iter-missing-items`` for dictionaries only using \
tuples as keys
* The ``unspecified-encoding`` checker now also checks calls to \
``pathlib.Path().read_text()``
and ``pathlib.Path().write_text()``
* Fix false positive ``superfluous-parens`` for tuples created with inner tuples
* Fix false positive ``unused-private-member`` for accessing attributes in a \
class using ``cls``
* Fix false positive ``unused-private-member`` for private staticmethods \
accessed in classmethods.
* Extended ``consider-using-in`` check to work for attribute access.
* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop \
checking for duplicate code
* Fix a bug where pylint complained if the cache's parent directory does not exist
* The ``global-variable-not-assigned`` checker now catches global variables that \
are never reassigned in a
local scope and catches (reassigned) functions
* Fix false positives for invalid-all-format that are lists or tuples at runtime
* Fix ``no-self-use`` and ``docparams extension`` for async functions and methods.
* Add documentation for ``pyreverse`` and ``symilar``
* Non symbolic messages with the wrong capitalisation now correctly trigger \
``use-symbolic-message-instead``
* The ``consider-iterating-dictionary`` checker now also considers membership checks
* The ``invalid-name`` message is now more detailed when using multiple naming \
style regexes.
Files: