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.10.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c689bffd91a
branches:  trunk
changeset: 458315:7c689bffd91a
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Sep 13 06:52:31 2021 +0000

description:
py-pylint: updated to 2.10.2

What's New in Pylint 2.10.2?
============================
* We now use platformdirs instead of appdirs since the latter is not maintained.
* Fix a crash in the checker raising ``shallow-copy-environ`` when failing to infer
  on ``copy.copy``


What's New in Pylint 2.10.1?
============================
* pylint does not crash when PYLINT_HOME does not exist.


What's New in Pylint 2.10.0?
============================
* pyreverse: add option to produce colored output.
* pyreverse: add output in PlantUML format.
* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.
* 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
* Fixed a crash when importing beyond the top level package during ``import-error``
  message creation
* Added ``ignored-parents`` option to the design checker to ignore specific
  classes from the ``too-many-ancestors`` check (R0901).
* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding
* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``.
* Don't emit ``no-member`` error if guarded behind if statement.
* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.
* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]``
* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}``
* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block.
* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used.
* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found
* Fix false-positive of ``unused-private-member`` when using nested functions in a class
* Fix crash for ``unused-private-member`` that occurred with nested attributes.
* Fix a false positive for ``unused-private-member`` with class names
* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension.
* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced
* Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter.
* Fix false negative for ``used-before-assignment`` when the variable is assigned
  in an exception handler, but used outside of the handler.
* Added ``disable-next`` option: allows using `# pylint: disable-next=msgid` to disable a message for the following line
* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string
* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions,
  and function default argument expressions. Also handle basic variable shadowing.
* 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
* Config files can now contain environment variables
* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node
* 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
* 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
* Improve performance when inferring ``Call`` nodes, by utilizing caching.
* Improve error message for invalid-metaclass when the node is an Instance.

diffstat:

 devel/py-pylint/Makefile |   7 ++++---
 devel/py-pylint/PLIST    |  26 ++++++++++++++++++++++----
 devel/py-pylint/distinfo |  10 +++++-----
 3 files changed, 31 insertions(+), 12 deletions(-)

diffs (102 lines):

diff -r 06b8804c348e -r 7c689bffd91a devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile  Mon Sep 13 06:50:20 2021 +0000
+++ b/devel/py-pylint/Makefile  Mon Sep 13 06:52:31 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.54 2021/07/30 12:49:17 adam Exp $
+# $NetBSD: Makefile,v 1.55 2021/09/13 06:52:31 adam Exp $
 
-DISTNAME=      pylint-2.9.6
+DISTNAME=      pylint-2.10.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -10,9 +10,10 @@
 COMMENT=       Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.6.5:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.7.2:../../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
 DEPENDS+=      ${PYPKGPREFIX}-toml>=0.7.1:../../textproc/py-toml
 
 USE_LANGUAGES= # none
diff -r 06b8804c348e -r 7c689bffd91a devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST     Mon Sep 13 06:50:20 2021 +0000
+++ b/devel/py-pylint/PLIST     Mon Sep 13 06:52:31 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.22 2021/06/30 06:02:15 adam Exp $
+@comment $NetBSD: PLIST,v 1.23 2021/09/13 06:52:31 adam Exp $
 bin/epylint-${PYVERSSUFFIX}
 bin/pylint-${PYVERSSUFFIX}
 bin/pyreverse-${PYVERSSUFFIX}
@@ -162,6 +162,9 @@
 ${PYSITELIB}/pylint/extensions/confusing_elif.py
 ${PYSITELIB}/pylint/extensions/confusing_elif.pyc
 ${PYSITELIB}/pylint/extensions/confusing_elif.pyo
+${PYSITELIB}/pylint/extensions/consider_ternary_expression.py
+${PYSITELIB}/pylint/extensions/consider_ternary_expression.pyc
+${PYSITELIB}/pylint/extensions/consider_ternary_expression.pyo
 ${PYSITELIB}/pylint/extensions/docparams.py
 ${PYSITELIB}/pylint/extensions/docparams.pyc
 ${PYSITELIB}/pylint/extensions/docparams.pyo
@@ -186,6 +189,9 @@
 ${PYSITELIB}/pylint/extensions/typing.py
 ${PYSITELIB}/pylint/extensions/typing.pyc
 ${PYSITELIB}/pylint/extensions/typing.pyo
+${PYSITELIB}/pylint/extensions/while_used.py
+${PYSITELIB}/pylint/extensions/while_used.pyc
+${PYSITELIB}/pylint/extensions/while_used.pyo
 ${PYSITELIB}/pylint/graph.py
 ${PYSITELIB}/pylint/graph.pyc
 ${PYSITELIB}/pylint/graph.pyo
@@ -240,18 +246,30 @@
 ${PYSITELIB}/pylint/pyreverse/diagrams.py
 ${PYSITELIB}/pylint/pyreverse/diagrams.pyc
 ${PYSITELIB}/pylint/pyreverse/diagrams.pyo
+${PYSITELIB}/pylint/pyreverse/dot_printer.py
+${PYSITELIB}/pylint/pyreverse/dot_printer.pyc
+${PYSITELIB}/pylint/pyreverse/dot_printer.pyo
 ${PYSITELIB}/pylint/pyreverse/inspector.py
 ${PYSITELIB}/pylint/pyreverse/inspector.pyc
 ${PYSITELIB}/pylint/pyreverse/inspector.pyo
 ${PYSITELIB}/pylint/pyreverse/main.py
 ${PYSITELIB}/pylint/pyreverse/main.pyc
 ${PYSITELIB}/pylint/pyreverse/main.pyo
+${PYSITELIB}/pylint/pyreverse/plantuml_printer.py
+${PYSITELIB}/pylint/pyreverse/plantuml_printer.pyc
+${PYSITELIB}/pylint/pyreverse/plantuml_printer.pyo
+${PYSITELIB}/pylint/pyreverse/printer.py
+${PYSITELIB}/pylint/pyreverse/printer.pyc
+${PYSITELIB}/pylint/pyreverse/printer.pyo
+${PYSITELIB}/pylint/pyreverse/printer_factory.py
+${PYSITELIB}/pylint/pyreverse/printer_factory.pyc
+${PYSITELIB}/pylint/pyreverse/printer_factory.pyo
 ${PYSITELIB}/pylint/pyreverse/utils.py
 ${PYSITELIB}/pylint/pyreverse/utils.pyc
 ${PYSITELIB}/pylint/pyreverse/utils.pyo
-${PYSITELIB}/pylint/pyreverse/vcgutils.py
-${PYSITELIB}/pylint/pyreverse/vcgutils.pyc
-${PYSITELIB}/pylint/pyreverse/vcgutils.pyo
+${PYSITELIB}/pylint/pyreverse/vcg_printer.py
+${PYSITELIB}/pylint/pyreverse/vcg_printer.pyc
+${PYSITELIB}/pylint/pyreverse/vcg_printer.pyo
 ${PYSITELIB}/pylint/pyreverse/writer.py
 ${PYSITELIB}/pylint/pyreverse/writer.pyc
 ${PYSITELIB}/pylint/pyreverse/writer.pyo
diff -r 06b8804c348e -r 7c689bffd91a devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Mon Sep 13 06:50:20 2021 +0000
+++ b/devel/py-pylint/distinfo  Mon Sep 13 06:52:31 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.43 2021/07/30 12:49:17 adam Exp $
+$NetBSD: distinfo,v 1.44 2021/09/13 06:52:31 adam Exp $
 
-SHA1 (pylint-2.9.6.tar.gz) = fbc0a698bd515ae44cb01c9c7fb4e77bf8c7cd37
-RMD160 (pylint-2.9.6.tar.gz) = ebf016d585fbedb0ad1f242f6762cd90cf00cb7a
-SHA512 (pylint-2.9.6.tar.gz) = 78cbd820a491b0db1abe11565d09f821c4fb325c30a3d20cd500bbe767445f6415afe27a5a0c70915663e19de7a2bd6292da7a7a2d007b1e308baae14b71142f
-Size (pylint-2.9.6.tar.gz) = 317360 bytes
+SHA1 (pylint-2.10.2.tar.gz) = 814424cefcc4374c7fc48b5c03a923101ac103e9
+RMD160 (pylint-2.10.2.tar.gz) = 898bd5a2f6e3eacc926aa3f3acb8364fdbe5a544
+SHA512 (pylint-2.10.2.tar.gz) = 70121f19e51a5373634b92b8c5f3240dbc70ba1803bff4ab2d7c4b7b2a47d7c586b1a69df6a8b55607bc7fb201af57d40c668d297508ec21778541d674ab049f
+Size (pylint-2.10.2.tar.gz) = 331067 bytes



Home | Main Index | Thread Index | Old Index