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:           Mon Oct 12 09:31:39 UTC 2026

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

Log Message:
py-pylint: updated to 4.1.3

What's new in Pylint 4.1.3?

False Positives Fixed

- Fixed a false positive for ``attribute-defined-outside-init`` when an
  attribute is assigned inside the setter of an old-style, non-decorator
  ``property(fget, fset)`` call. The decorator form (``@property`` /
  ``@x.setter``) was already exempted by the fix for 409; the classic
  call form was not.

- Fix a false positive for ``used-before-assignment`` when a name bound by an earlier
  target of the same assignment is used by a later target, as in ``a = b[a] = 0``.

- Fix a ``no-member`` false positive in a comprehension inside a branch that
  cannot run, such as ``if sys.platform == "win32":`` on Linux. Like the rest of
  the branch, the comprehension is no longer checked for missing members.

- Fix a false positive for ``used-before-assignment`` when a name bound by a tuple
  or list target of a ``with`` item is used by a later item of the same ``with`` statement.

- Fix false positives such as ``not-callable``, ``not-an-iterable``,
  ``unpacking-non-sequence`` and ``no-member`` on the result of a function whose
  body is only ``...``, like ``@overload`` and ``.pyi`` stubs. Such calls were
  inferred as returning ``None``. This affected ``sqlalchemy.func``,
  ``pydantic.Field``, and the ``torch`` functions wrapped by ``_add_docstr``,
  such as ``torch.linalg.qr``.

- Fix a false positive for ``protected-access`` when a subclass of a subscripted
  generic base, such as ``class Child(Parent[T])``, accesses a protected member
  through that base, such as ``Parent._foo(self)``.

- Avoid emitting ``unreachable`` for a ``yield`` immediately after ``raise`` or
  ``sys.exit()`` that marks a function as a generator, matching the existing
  handling of ``return``.

- Fix a false positive for :ref:`super-init-not-called` in ``.pyi`` stub files, where
  every ``__init__`` body is ``...`` and cannot call the parent's ``__init__``.

- Fix a false positive for :ref:`possibly-used-before-assignment` when a lambda
  uses its parameters, including from a nested lambda, and that name is assigned
  later in the module.

- Fix a false positive for ``useless-parent-delegation`` when a keyword-only
  parameter is passed to the parent under the same keyword but with a different value.

- Fix a false positive for :ref:`unused-argument` in ``.pyi`` stub files, where
  function bodies are ``...`` and cannot use their arguments.

- Fix a false positive for ``used-before-assignment`` when a name assigned with an
  assignment expression in the condition of a comprehension is used in its element,
  for example ``[y for x in data if (y := f(x))]``.

- Fixed false positive ``arguments-differ`` and ``signature-differs`` for
  ``typing.overload`` stubs. Overload stubs in a subclass are no longer compared
  to the overridden method, and an overridden method with overloads is compared
  through its implementation instead of its first stub.

- Stop emitting :ref:`redefined-variable-type` when the bare ``_`` variable is
  reused to discard values of different types.

- Allow the ``__main__`` module name in the ``camelCase``, ``PascalCase`` and
  ``UPPER_CASE`` naming styles without reporting ``invalid-name``.

- Fixed a false positive for ``unexpected-keyword-arg`` when a decorator that
  returns its argument unchanged is stacked above a decorator accepting ``**kwargs``.

- Fix ``invalid-name`` false positives for module-level all-caps aliases that
  preserve the name of an external callable.

- ``redefined-builtin`` no longer warns for method parameters that retain a
  built-in name from an overridden method.

- Fixed a false positive for ``useless-suppression`` of ``line-too-long`` when a ``#`` inside a string literal comes before the ``# pylint: disable=line-too-long`` comment.

- Fix a false positive for :ref:`unnecessary-ellipsis` when an ellipsis is the
  sole body statement of a ``Protocol`` method defined inside a conditional block
  such as ``if TYPE_CHECKING:``.

- Fix a false positive for :ref:`unnecessary-negation` when negating a comparison
  between instances of a ``set`` or ``frozenset`` subclass.


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 pkgsrc/devel/py-pylint/Makefile
cvs rdiff -u -r1.109 -r1.110 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.124 pkgsrc/devel/py-pylint/Makefile:1.125
--- pkgsrc/devel/py-pylint/Makefile:1.124       Sun Oct  4 17:01:25 2026
+++ pkgsrc/devel/py-pylint/Makefile     Mon Oct 12 09:31:39 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.124 2026/10/04 17:01:25 wiz Exp $
+# $NetBSD: Makefile,v 1.125 2026/10/12 09:31:39 adam Exp $
 #
 # Changes: https://github.com/pylint-dev/pylint/releases
 
-DISTNAME=      pylint-4.1.2
+DISTNAME=      pylint-4.1.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -13,7 +13,7 @@ COMMENT=      Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=4.0.2:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=4.3.4:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-dill>=0.3.7:../../textproc/py-dill
 DEPENDS+=      ${PYPKGPREFIX}-isort>=5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe

Index: pkgsrc/devel/py-pylint/distinfo
diff -u pkgsrc/devel/py-pylint/distinfo:1.109 pkgsrc/devel/py-pylint/distinfo:1.110
--- pkgsrc/devel/py-pylint/distinfo:1.109       Sun Oct  4 17:01:25 2026
+++ pkgsrc/devel/py-pylint/distinfo     Mon Oct 12 09:31:39 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.109 2026/10/04 17:01:25 wiz Exp $
+$NetBSD: distinfo,v 1.110 2026/10/12 09:31:39 adam Exp $
 
-BLAKE2s (pylint-4.1.2.tar.gz) = 1248acb43fbd86fb172cd659b31f6b7db332add395eb0dca145136055c0bde40
-SHA512 (pylint-4.1.2.tar.gz) = 8f2fb385d0866865fe8ce7e5382586e1e5b4420544ab58773079c2387be4c6e93033f0f749a7972cce91faae9f957e3be397d695cab294f0752e4d1bc71f1c93
-Size (pylint-4.1.2.tar.gz) = 1739885 bytes
+BLAKE2s (pylint-4.1.3.tar.gz) = 929a2a62c9f7cd53579bc043a89d435b7f835721a8718465e7139f4726ed0e40
+SHA512 (pylint-4.1.3.tar.gz) = 7f56b157a477f0b4447103467f9397f5b59b580002a9c7ac8dce9c4b34a1b6c8a3814e7218f8f8af9496b6acd785848f3d63388c202f9744291ac27a76c7b04a
+Size (pylint-4.1.3.tar.gz) = 1756180 bytes



Home | Main Index | Thread Index | Old Index