pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-pylint py-pylint: updated to 2.11.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/00c38d5e63dc
branches:  trunk
changeset: 768581:00c38d5e63dc
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 26 12:22:15 2021 +0000

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

diffstat:

 devel/py-pylint/Makefile |  11 ++++++++---
 devel/py-pylint/PLIST    |  17 +++++++++++++----
 devel/py-pylint/distinfo |   8 ++++----
 3 files changed, 25 insertions(+), 11 deletions(-)

diffs (105 lines):

diff -r c3acc49cc333 -r 00c38d5e63dc devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile  Tue Oct 26 12:20:38 2021 +0000
+++ b/devel/py-pylint/Makefile  Tue Oct 26 12:22:15 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.55 2021/09/13 06:52:31 adam Exp $
+# $NetBSD: Makefile,v 1.56 2021/10/26 12:22:15 adam Exp $
 
-DISTNAME=      pylint-2.10.2
+DISTNAME=      pylint-2.11.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -10,7 +10,7 @@
 COMMENT=       Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.7.2:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.8.0:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
 DEPENDS+=      ${PYPKGPREFIX}-platformdirs>=2.2.0:../../misc/py-platformdirs
@@ -20,6 +20,11 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 310
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.10:../../devel/py-typing-extensions
+.endif
+
 post-install:
 .for file in epylint pylint pyreverse symilar
        cd ${DESTDIR}${PREFIX}/bin && \
diff -r c3acc49cc333 -r 00c38d5e63dc devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST     Tue Oct 26 12:20:38 2021 +0000
+++ b/devel/py-pylint/PLIST     Tue Oct 26 12:22:15 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.23 2021/09/13 06:52:31 adam Exp $
+@comment $NetBSD: PLIST,v 1.24 2021/10/26 12:22:15 adam Exp $
 bin/epylint-${PYVERSSUFFIX}
 bin/pylint-${PYVERSSUFFIX}
 bin/pyreverse-${PYVERSSUFFIX}
@@ -60,9 +60,6 @@
 ${PYSITELIB}/pylint/checkers/newstyle.py
 ${PYSITELIB}/pylint/checkers/newstyle.pyc
 ${PYSITELIB}/pylint/checkers/newstyle.pyo
-${PYSITELIB}/pylint/checkers/python3.py
-${PYSITELIB}/pylint/checkers/python3.pyc
-${PYSITELIB}/pylint/checkers/python3.pyo
 ${PYSITELIB}/pylint/checkers/raw_metrics.py
 ${PYSITELIB}/pylint/checkers/raw_metrics.pyc
 ${PYSITELIB}/pylint/checkers/raw_metrics.pyo
@@ -186,6 +183,9 @@
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.py
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.pyc
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.pyo
+${PYSITELIB}/pylint/extensions/set_membership.py
+${PYSITELIB}/pylint/extensions/set_membership.pyc
+${PYSITELIB}/pylint/extensions/set_membership.pyo
 ${PYSITELIB}/pylint/extensions/typing.py
 ${PYSITELIB}/pylint/extensions/typing.pyc
 ${PYSITELIB}/pylint/extensions/typing.pyo
@@ -297,6 +297,9 @@
 ${PYSITELIB}/pylint/reporters/ureports/__init__.py
 ${PYSITELIB}/pylint/reporters/ureports/__init__.pyc
 ${PYSITELIB}/pylint/reporters/ureports/__init__.pyo
+${PYSITELIB}/pylint/reporters/ureports/base_writer.py
+${PYSITELIB}/pylint/reporters/ureports/base_writer.pyc
+${PYSITELIB}/pylint/reporters/ureports/base_writer.pyo
 ${PYSITELIB}/pylint/reporters/ureports/nodes.py
 ${PYSITELIB}/pylint/reporters/ureports/nodes.pyc
 ${PYSITELIB}/pylint/reporters/ureports/nodes.pyo
@@ -330,6 +333,9 @@
 ${PYSITELIB}/pylint/testutils/output_line.py
 ${PYSITELIB}/pylint/testutils/output_line.pyc
 ${PYSITELIB}/pylint/testutils/output_line.pyo
+${PYSITELIB}/pylint/testutils/pyreverse.py
+${PYSITELIB}/pylint/testutils/pyreverse.pyc
+${PYSITELIB}/pylint/testutils/pyreverse.pyo
 ${PYSITELIB}/pylint/testutils/reporter_for_tests.py
 ${PYSITELIB}/pylint/testutils/reporter_for_tests.pyc
 ${PYSITELIB}/pylint/testutils/reporter_for_tests.pyo
@@ -339,6 +345,9 @@
 ${PYSITELIB}/pylint/testutils/unittest_linter.py
 ${PYSITELIB}/pylint/testutils/unittest_linter.pyc
 ${PYSITELIB}/pylint/testutils/unittest_linter.pyo
+${PYSITELIB}/pylint/typing.py
+${PYSITELIB}/pylint/typing.pyc
+${PYSITELIB}/pylint/typing.pyo
 ${PYSITELIB}/pylint/utils/__init__.py
 ${PYSITELIB}/pylint/utils/__init__.pyc
 ${PYSITELIB}/pylint/utils/__init__.pyo
diff -r c3acc49cc333 -r 00c38d5e63dc devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Tue Oct 26 12:20:38 2021 +0000
+++ b/devel/py-pylint/distinfo  Tue Oct 26 12:22:15 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.46 2021/10/26 10:18:48 nia Exp $
+$NetBSD: distinfo,v 1.47 2021/10/26 12:22:15 adam Exp $
 
-BLAKE2s (pylint-2.10.2.tar.gz) = 9ed4a361941980995ec98c062a918722ec9ecb3506cabba007b9ace7eb5cb839
-SHA512 (pylint-2.10.2.tar.gz) = 70121f19e51a5373634b92b8c5f3240dbc70ba1803bff4ab2d7c4b7b2a47d7c586b1a69df6a8b55607bc7fb201af57d40c668d297508ec21778541d674ab049f
-Size (pylint-2.10.2.tar.gz) = 331067 bytes
+BLAKE2s (pylint-2.11.1.tar.gz) = fc0f7ad05d74be93e2881757e59acaa0660b94071a4bc105f0b094063816f30e
+SHA512 (pylint-2.11.1.tar.gz) = 511fae0a7778d4f7337947983ae7972d4b0caeca475f11955b3e359bc1347163e213cd25c095bc76ef2ae20e3fdfbcbcdce0607a8e62a776c57e5410536edfbf
+Size (pylint-2.11.1.tar.gz) = 327130 bytes



Home | Main Index | Thread Index | Old Index