pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-pylint



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat May 18 06:17:34 UTC 2024

Modified Files:
        pkgsrc/devel/py-pylint: Makefile PLIST distinfo

Log Message:
py-pylint: updated to 3.2.0

What's new in Pylint 3.2.0?

New Features

Understand six.PY2 and six.PY3 for conditional imports.

A new github reporter has been added. This reporter returns the output of pylint in a format that Github can use to automatically annotate code. Use it with pylint --output-format=github on your 
Github Workflows.

New Checks

Add check possibly-used-before-assignment when relying on names after an if/else switch when one branch failed to define the name, raise, or return.

Checks for generators that use contextmanagers that don't handle cleanup properly. Is meant to raise visibility on the case that a generator is not fully exhausted and the contextmanager is not 
cleaned up properly. A contextmanager must yield a non-constant value and not handle cleanup for GeneratorExit. The using generator must attempt to use the yielded context value with x() as y and not 
just with x().

False Negatives Fixed

If and Try nodes are now checked for useless return statements as well.

Fix false negative for property-with-parameters in the case of parameters which are positional-only, keyword-only, variadic positional or variadic keyword.

False Positives Fixed

pylint now understands the @overload decorator return values better.

Performance Improvements

Ignored modules are now not checked at all, instead of being checked and then ignored. This should speed up the analysis of large codebases which have ignored modules.

ImportChecker's logic has been modified to avoid context files when possible. This makes it possible to cache module searches on astroid and reduce execution times.

An internal check for trailing-comma-tuple being enabled for a file or not is now done once per file instead of once for each token.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 pkgsrc/devel/py-pylint/Makefile
cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/py-pylint/PLIST
cvs rdiff -u -r1.81 -r1.82 pkgsrc/devel/py-pylint/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pylint/Makefile
diff -u pkgsrc/devel/py-pylint/Makefile:1.94 pkgsrc/devel/py-pylint/Makefile:1.95
--- pkgsrc/devel/py-pylint/Makefile:1.94        Tue May 14 13:12:24 2024
+++ pkgsrc/devel/py-pylint/Makefile     Sat May 18 06:17:34 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.94 2024/05/14 13:12:24 adam Exp $
+# $NetBSD: Makefile,v 1.95 2024/05/18 06:17:34 adam Exp $
 
-DISTNAME=      pylint-3.1.1
+DISTNAME=      pylint-3.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -12,7 +12,7 @@ LICENSE=      gnu-gpl-v2
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=66.1:../../devel/py-setuptools
 TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.37.1:../../devel/py-wheel
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=3.1.0:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=3.2.0:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-dill>=0.3.7:../../textproc/py-dill
 DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe

Index: pkgsrc/devel/py-pylint/PLIST
diff -u pkgsrc/devel/py-pylint/PLIST:1.33 pkgsrc/devel/py-pylint/PLIST:1.34
--- pkgsrc/devel/py-pylint/PLIST:1.33   Sun Mar  3 11:54:21 2024
+++ pkgsrc/devel/py-pylint/PLIST        Sat May 18 06:17:34 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.33 2024/03/03 11:54:21 wiz Exp $
+@comment $NetBSD: PLIST,v 1.34 2024/05/18 06:17:34 adam Exp $
 bin/pylint-${PYVERSSUFFIX}
 bin/pylint-config-${PYVERSSUFFIX}
 bin/pyreverse-${PYVERSSUFFIX}
@@ -43,6 +43,9 @@ ${PYSITELIB}/pylint/checkers/base/compar
 ${PYSITELIB}/pylint/checkers/base/docstring_checker.py
 ${PYSITELIB}/pylint/checkers/base/docstring_checker.pyc
 ${PYSITELIB}/pylint/checkers/base/docstring_checker.pyo
+${PYSITELIB}/pylint/checkers/base/function_checker.py
+${PYSITELIB}/pylint/checkers/base/function_checker.pyc
+${PYSITELIB}/pylint/checkers/base/function_checker.pyo
 ${PYSITELIB}/pylint/checkers/base/name_checker/__init__.py
 ${PYSITELIB}/pylint/checkers/base/name_checker/__init__.pyc
 ${PYSITELIB}/pylint/checkers/base/name_checker/__init__.pyo

Index: pkgsrc/devel/py-pylint/distinfo
diff -u pkgsrc/devel/py-pylint/distinfo:1.81 pkgsrc/devel/py-pylint/distinfo:1.82
--- pkgsrc/devel/py-pylint/distinfo:1.81        Tue May 14 13:12:24 2024
+++ pkgsrc/devel/py-pylint/distinfo     Sat May 18 06:17:34 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.81 2024/05/14 13:12:24 adam Exp $
+$NetBSD: distinfo,v 1.82 2024/05/18 06:17:34 adam Exp $
 
-BLAKE2s (pylint-3.1.1.tar.gz) = d0195e3722d7dd30358add5283b81954f5b038f4e0b0428d0fac7ad2342833dc
-SHA512 (pylint-3.1.1.tar.gz) = 96e36a4a5794a6e36cc47790700acbab7820f1483feefeb7629454e3ea3a2c5c3cf6e8cc9b82525f05e51926b0547f84f9189fc346a32d46723331bb3cbc928a
-Size (pylint-3.1.1.tar.gz) = 1495262 bytes
+BLAKE2s (pylint-3.2.0.tar.gz) = 008d82f7aa2055d917aec7318433522c4edd9a78f12d51c5c8c7d109f35f7f32
+SHA512 (pylint-3.2.0.tar.gz) = ecac2dfaba9379211fab7b71c9a42ee626226c8eef2f5b1f60636be1554ebb0db0e225c5ed341f715385f10711e1b90bfe72656fc7de5a29a63b8fac34ba91d9
+Size (pylint-3.2.0.tar.gz) = 1502407 bytes



Home | Main Index | Thread Index | Old Index