diff options
author | adam <adam@pkgsrc.org> | 2021-06-30 06:02:15 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2021-06-30 06:02:15 +0000 |
commit | e74287c5eb57eaab53ab51dda70b37eb5f5268c1 (patch) | |
tree | 224a6af066b3aa547ab661b566588875ca462717 | |
parent | 34363840b85ff32af24eb6272ee7e2b3eb56ee44 (diff) | |
download | pkgsrc-e74287c5eb57eaab53ab51dda70b37eb5f5268c1.tar.gz |
py-pylint: updated to 2.9.0
What's New in Pylint 2.9.0?
===========================
Release date: 2021-06-29
* Python 3.10 is now supported.
* Add type annotations to pyreverse dot files
* Fix missing support for detecting deprecated aliases to existing
functions/methods.
* astroid has been upgraded to 2.6.1
* Added various deprecated functions/methods for python 3.10, 3.7, 3.6 and 3.3
* Fix false positive ``useless-type-doc`` on ignored argument using ``pylint.extensions.docparams``
when a function was typed using pep484 but not inside the docstring.
* ``setuptools_scm`` has been removed and replaced by ``tbump`` in order to not
have hidden runtime dependencies to setuptools
* Fix a crash when a test function is decorated with ``@pytest.fixture`` and astroid can't
infer the name of the decorator when using ``open`` without ``with``.
* Added ``deprecated-decorator``: Emitted when deprecated decorator is used.
* Added ``ignore-paths`` behaviour. Defined regex patterns are matched against full file path.
* Fix false negative for ``consider-using-with`` if calls like ``open()`` were used outside of assignment expressions.
* The warning for ``arguments-differ`` now signals explicitly the difference it detected
by naming the argument or arguments that changed and the type of change that occurred.
* Suppress ``consider-using-with`` inside context managers.
* Added ``--fail-on`` option to return non-zero exit codes regardless of ``--fail-under`` value.
* numversion tuple contains integers again to fix multiple pylint's plugins that relied on it
* Fix false-positive ``too-many-ancestors`` when inheriting from builtin classes,
especially from the ``collections.abc`` module
* Stdlib deprecated modules check is moved to stdlib checker. New deprecated
modules are added.
* Fix raising false-positive ``no-member`` on abstract properties
* Created new error message called ``arguments-renamed`` which identifies any changes at the parameter
names of overridden functions.
* New checker ``consider-using-dict-items``. Emitted when iterating over dictionary keys and then
indexing the same dictionary with the key within loop body.
* Don't emit ``import-error`` if import guarded behind ``if sys.version_info >= (x, x)``
* Fix incompatibility with Python 3.6.0 caused by ``typing.Counter`` and ``typing.NoReturn`` usage
* New checker ``use-maxsplit-arg``. Emitted either when accessing only the first or last
element of ``str.split()``.
* Add ignore_signatures to duplicate code checker
* Fix documentation errors in "Block disables" paragraph of User Guide.
* New checker ``unnecessary-dict-index-lookup``. Emitted when iterating over dictionary items
(key-value pairs) and accessing the value by index lookup.
* New checker``consider-using-from-import``. Emitted when a submodule/member of a package is imported and aliased
with the same name.
* Allow comma-separated list in ``output-format`` and separate output files for
each specified format.
* Make ``using-constant-test`` detect constant tests consisting of list literals like ``[]`` and
``[1, 2, 3]``.
* Improved error message of ``unnecessary-comprehension`` checker by providing code suggestion.
* New checker ``unused-private-member``. Emitted when a private member (i.e., starts with ``__``) of a class
is defined but not used.
* Fix false negative of ``consider-using-enumerate`` when iterating over an attribute.
* New checker ``invalid-class-object``. Emitted when a non-class is assigned to a ``__class__`` attribute.
* Fix a crash when a plugin from the configuration could not be loaded and raise an error
'bad-plugin-value' instead
* Added handling of floating point values when parsing configuration from pyproject.toml
* ``invalid-length-returned``, now also works when nothing at all is returned
following an upgrade in astroid.
* ``logging-format-interpolation`` and ``logging-not-lazy``, now works on logger
class created from renamed logging import following an upgrade in astroid.
* Fix false-positive ``no-member`` with generic base class
* Fix ``assigning-non-slot`` false-positive with base that inherits from ``typing.Generic``
* New checker ``invalid-all-format``. Emitted when ``__all__`` has an invalid format,
i.e. isn't a ``tuple`` or ``list``.
* Fix false positive ``unused-variable`` and ``undefined-variable`` with
Pattern Matching in Python 3.10
* New checker ``await-outside-async``. Emitted when await is used outside an async function.
* Clarify documentation for ``typing`` extension.
* Add new extension ``CodeStyleChecker``. It includes checkers that can improve code
consistency. As such they don't necessarily provide a performance benefit
and are often times opinionated.
* New checker ``consider-using-tuple``. Emitted when an in-place defined
list or set can be replaced by a tuple.
* New checker ``consider-using-namedtuple-or-dataclass``. Emitted when dictionary values
can be replaced by namedtuples or dataclass instances.
* Fix error that occurred when using ``slice`` as subscript for dict.
* Reduce false-positives around inference of ``.value`` and ``.name``
properties on ``Enum`` subclasses, following an upgrade in astroid
* Fix issue with ``cached_property`` that caused ``invalid-overridden-method`` error
when overriding a ``property``.
* Fix ``unused-import`` false positive for imported modules referenced in
attribute lookups in type comments.
What's New in Pylint 2.8.3?
===========================
Release date: 2021-05-31
* Astroid has been pinned to 2.5.6 for the 2.8 branch.
-rw-r--r-- | devel/py-pylint/Makefile | 7 | ||||
-rw-r--r-- | devel/py-pylint/PLIST | 8 | ||||
-rw-r--r-- | devel/py-pylint/distinfo | 10 |
3 files changed, 15 insertions, 10 deletions
diff --git a/devel/py-pylint/Makefile b/devel/py-pylint/Makefile index ad10c00f5a3..6f5d2c7508b 100644 --- a/devel/py-pylint/Makefile +++ b/devel/py-pylint/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.50 2021/04/27 04:45:54 adam Exp $ +# $NetBSD: Makefile,v 1.51 2021/06/30 06:02:15 adam Exp $ -DISTNAME= pylint-2.8.2 +DISTNAME= pylint-2.9.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/} @@ -10,8 +10,7 @@ HOMEPAGE= https://www.pylint.org/ COMMENT= Python source code analyzer LICENSE= gnu-gpl-v2 -BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm -DEPENDS+= ${PYPKGPREFIX}-astroid>=2.5.6:../../devel/py-astroid +DEPENDS+= ${PYPKGPREFIX}-astroid>=2.6.1:../../devel/py-astroid DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe DEPENDS+= ${PYPKGPREFIX}-toml>=0.7.1:../../textproc/py-toml diff --git a/devel/py-pylint/PLIST b/devel/py-pylint/PLIST index ebdee1d6ac7..dcc4eb7b0d1 100644 --- a/devel/py-pylint/PLIST +++ b/devel/py-pylint/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.21 2021/04/26 13:00:31 adam Exp $ +@comment $NetBSD: PLIST,v 1.22 2021/06/30 06:02:15 adam Exp $ bin/epylint-${PYVERSSUFFIX} bin/pylint-${PYVERSSUFFIX} bin/pyreverse-${PYVERSSUFFIX} @@ -153,6 +153,9 @@ ${PYSITELIB}/pylint/extensions/check_docs.pyo ${PYSITELIB}/pylint/extensions/check_elif.py ${PYSITELIB}/pylint/extensions/check_elif.pyc ${PYSITELIB}/pylint/extensions/check_elif.pyo +${PYSITELIB}/pylint/extensions/code_style.py +${PYSITELIB}/pylint/extensions/code_style.pyc +${PYSITELIB}/pylint/extensions/code_style.pyo ${PYSITELIB}/pylint/extensions/comparetozero.py ${PYSITELIB}/pylint/extensions/comparetozero.pyc ${PYSITELIB}/pylint/extensions/comparetozero.pyo @@ -264,6 +267,9 @@ ${PYSITELIB}/pylint/reporters/collecting_reporter.pyo ${PYSITELIB}/pylint/reporters/json_reporter.py ${PYSITELIB}/pylint/reporters/json_reporter.pyc ${PYSITELIB}/pylint/reporters/json_reporter.pyo +${PYSITELIB}/pylint/reporters/multi_reporter.py +${PYSITELIB}/pylint/reporters/multi_reporter.pyc +${PYSITELIB}/pylint/reporters/multi_reporter.pyo ${PYSITELIB}/pylint/reporters/reports_handler_mix_in.py ${PYSITELIB}/pylint/reporters/reports_handler_mix_in.pyc ${PYSITELIB}/pylint/reporters/reports_handler_mix_in.pyo diff --git a/devel/py-pylint/distinfo b/devel/py-pylint/distinfo index 970f4ff0358..23ea534d373 100644 --- a/devel/py-pylint/distinfo +++ b/devel/py-pylint/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.39 2021/04/27 04:45:54 adam Exp $ +$NetBSD: distinfo,v 1.40 2021/06/30 06:02:15 adam Exp $ -SHA1 (pylint-2.8.2.tar.gz) = 8d64a42a7733b291902fa0188cd3193eb4de09df -RMD160 (pylint-2.8.2.tar.gz) = 9a7be8abac1db0d12d5f0cc2252cceef6962f05b -SHA512 (pylint-2.8.2.tar.gz) = 304cb32fc72a6efe89d3d6799b1bf5ffa2a16220b99d8f0aa39753aeea907c88ed81ddebfc4de91be33243dd47dd1bcde4077fb6428f6fa4fe80636c77be907e -Size (pylint-2.8.2.tar.gz) = 745627 bytes +SHA1 (pylint-2.9.0.tar.gz) = 81a54016a373aef3185275b96e0dc26f26e0a2cc +RMD160 (pylint-2.9.0.tar.gz) = 96029d5ab1b2d5aa5a8b9e5340c8f872721f3fc4 +SHA512 (pylint-2.9.0.tar.gz) = 04ee47e46b837ddbb5e8b5aec5597b971fa0d00fb11799e6da6d4a40f453faa912f973cd41c93426ad4e730304ee6efd121f96d03a231b2324e06592ea0eced4 +Size (pylint-2.9.0.tar.gz) = 314322 bytes |