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:           Tue Aug 11 06:25:50 UTC 2026

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

Log Message:
py-pylint: updated to 4.0.7

4.0.7

False Positives Fixed

Fix a false positive for invalid-name when a module-level variable is assigned
an instance of a TypedDict subclass. Such a name is a value, not a type
definition, so it is now checked against the constant or variable regex instead
of class-rgx.

Other Bug Fixes

Fix a crash in the bad-open-mode check when the mode argument of
open is the NotImplemented constant (Python >= 3.14).

Fix a crash in the not-context-manager and not-async-context-manager
checks when the context manager infers to a value without a name, such as the
slice returned by with slice(...) / async with slice(...).

Fix a false positive for nested-min-max (W3301) when the inner min/max call carries a keyword argument such as key=. Flattening the call dropped the keyword and changed the result, so nested calls 
whose inner call has keyword arguments are no longer flagged.

Fix a false suggestion from nested-min-max (W3301): when rewriting a nested min/max into a splat call, arguments positioned after the splatted call were silently dropped, so the suggested code 
changed the result.

Fix a false positive for too-many-locals (R0914): PEP 695 type parameters, i.e. the T1 and T2 in a generic def f[T1, T2] signature, were counted as local variables. They are type-system constructs, 
not runtime locals, and are now excluded from the local-variable count.

Fix literal-comparison (R0123) emitting a corrupted suggestion for identifiers
that contain is (e.g. axis is 5 was rendered ax== == 5). The suggestion
is now rebuilt from the operands and operator.

Fix false positives in bad-string-format-type (E1307) for valid % formatting:
%i/%u applied to a float (both truncate like %d) and %a applied to any
non-int type (%a is type-agnostic like %s/%r).

Fix a false positive for :ref:useless-parent-delegation when an override changes
the default value of a positional-only parameter.

Fixed a crash in comparison-with-callable when comparing a lambda assigned as a class attribute.

too-many-lines could be reported at the line of a # pylint: disable=too-many-lines
pragma found in a previously linted module. Pragma positions are now reset between
modules, so the message is reported at line 1 (or at the current module's own pragma)
regardless of which files were linted before.

Fix a crash when a call unpacks a dictionary whose keys are not string
constants, e.g. copy.copy(**{-1: 1}).


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 pkgsrc/devel/py-pylint/Makefile
cvs rdiff -u -r1.105 -r1.106 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.120 pkgsrc/devel/py-pylint/Makefile:1.121
--- pkgsrc/devel/py-pylint/Makefile:1.120       Tue Jun 23 11:33:23 2026
+++ pkgsrc/devel/py-pylint/Makefile     Tue Aug 11 06:25:50 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.120 2026/06/23 11:33:23 wiz Exp $
+# $NetBSD: Makefile,v 1.121 2026/08/11 06:25:50 adam Exp $
 #
 # Changes: https://github.com/pylint-dev/pylint/releases
 
-DISTNAME=      pylint-4.0.6
+DISTNAME=      pylint-4.0.7
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -13,30 +13,26 @@ COMMENT=    Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=3.3.8:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=4.0.2:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-dill>=0.3.7:../../textproc/py-dill
-DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
+DEPENDS+=      ${PYPKGPREFIX}-isort>=5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
-DEPENDS+=      ${PYPKGPREFIX}-platformdirs>=2.2.0:../../misc/py-platformdirs
+DEPENDS+=      ${PYPKGPREFIX}-platformdirs>=2.2:../../misc/py-platformdirs
 DEPENDS+=      ${PYPKGPREFIX}-tomlkit>=0.10.1:../../textproc/py-tomlkit
 TEST_DEPENDS+= ${PYPKGPREFIX}-gitpython>=3:../../devel/py-gitpython
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark>=0:../../devel/py-test-benchmark
 
 USE_LANGUAGES= # none
 
+PY_RENAME_BINARIES=    pylint pylint-config pyreverse symilar
+
 # as of 4.0.6
 # 25 failed, 1998 passed, 261 skipped, 5 xfailed
 
 .include "../../lang/python/pyversion.mk"
 .if ${PYTHON_VERSION} < 311
-DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.1:../../textproc/py-tomli
 .endif
 
-post-install:
-.for file in pylint pylint-config pyreverse symilar
-       cd ${DESTDIR}${PREFIX}/bin && \
-       ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
-.endfor
-
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-pylint/distinfo
diff -u pkgsrc/devel/py-pylint/distinfo:1.105 pkgsrc/devel/py-pylint/distinfo:1.106
--- pkgsrc/devel/py-pylint/distinfo:1.105       Tue Jun 23 11:33:23 2026
+++ pkgsrc/devel/py-pylint/distinfo     Tue Aug 11 06:25:50 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.105 2026/06/23 11:33:23 wiz Exp $
+$NetBSD: distinfo,v 1.106 2026/08/11 06:25:50 adam Exp $
 
-BLAKE2s (pylint-4.0.6.tar.gz) = f5f135b68e08f1ecc6b8a8043b8480bdc6996964d4c4a59414330c0aef0e01b3
-SHA512 (pylint-4.0.6.tar.gz) = f52002cce9c163a6ee8cc4daa1a7a7461d8fa989654ab5c9d8b1298267f1d4e4e828b9eb04d675380a7b89f154afa62278f92c2e84e91a37e8b435431a8d9f22
-Size (pylint-4.0.6.tar.gz) = 1585588 bytes
+BLAKE2s (pylint-4.0.7.tar.gz) = b29581e0c94a1a21692d3cf5a7484d22afa2815fc4612c67092ba5e43e1c06e5
+SHA512 (pylint-4.0.7.tar.gz) = daba4199eb7aa228bba2b906148fb08a448fba8ece4458963d4a3fbaa916c206496e6f1ae6ed96cab69974b8a70b5c3a9f0429418bc34c098e10aad9c639b2bb
+Size (pylint-4.0.7.tar.gz) = 1594770 bytes



Home | Main Index | Thread Index | Old Index