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 Feb 22 09:24:34 UTC 2021

Modified Files:
        pkgsrc/devel/py-pylint: Makefile PLIST distinfo
        pkgsrc/devel/py-pylint/patches: patch-setup.py

Log Message:
py-pylint: updated to 2.7.0

What's New in Pylint 2.7.0?

* Introduce DeprecationMixin for reusable deprecation checks.
* Fix false positive for ``builtin-not-iterating`` when ``map`` receives iterable
* Python 3.6+ is now required.
* Fix false positive for ``builtin-not-iterating`` when ``zip`` receives iterable
* Add `nan-comparison` check for NaN comparisons
* Bug fix for empty-comment message line number.
* Only emit `bad-reversed-sequence` on dictionaries if below py3.8
* Handle class decorators applied to function.
* Add check for empty comments
* Fix minor documentation issue in contribute.rst
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
* Add missing checks for deprecated functions.
* Postponed evaluation of annotations are now recognized by default if python version is above 3.10
* Fix column metadata for anomalous backslash lints
* Drop support for Python 3.5
* Add support for pep585 with postponed evaluation
* Check alternative union syntax - PEP 604
* Fix multiple false positives with assignment expressions
* Fix TypedDict inherit-non-class false-positive Python 3.9+
* Fix issue with nested PEP 585 syntax
* Fix issue with nested PEP 604 syntax
* Fix a crash in `undefined-variable` caused by chained attributes in metaclass
* Fix false positive for `not-async-context-manager` when `contextlib.asynccontextmanager` is used
* Fix linter multiprocessing pool shutdown (triggered warnings when runned in parallels with other pytest plugins)
* Fix a false-positive emission of `no-self-use` and `unused-argument` for methods
  of generic structural types (`Protocol[T]`)
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more.
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate
  ``protected-access`` message emission for single underscore prefixed attribute in special methods.
* Fix vulnerable regular expressions in ``pyreverse``
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement
  is not returning explicitly while the other do.
* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionnary.
* Fix a crash when a specified config file does not exist
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and adds `useless-param-doc` and `useless-type-doc` messages.
* Enforce docparams consistently when docstring is not present
* Fix ``duplicate-code`` false positive when lines only contain whitespace and non-alphanumeric characters (e.g. parentheses, bracket, comman, etc.)
* Improve lint message for `singleton-comparison` with bools
* Fix spell-checker crash on indented docstring lines that look like # comments
* Fix AttributeError in checkers/refactoring.py
* Improve sphinx directives spelling filter
* Fix a bug with postponed evaluation when using aliases for annotations.
* Fix minor documentation issues
* Improve the performance of the line length check.
* Removed incorrect deprecation of ``inspect.getfullargspec``
* Fix ``signature-differs`` false positive for functions with variadics
* Fix a crash in `consider-using-enumerate` when encountering `range()` without arguments
* `len-as-conditions` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the `__bool__` function, or from generators like range or 
list/dict/set comprehension. This should reduce the false positives for other classes, like pandas's DataFrame or numpy's Array.
* Fixes duplicate-errors not working with -j2+
* `generated-members` now matches the qualified name of members
* Add check for bool function to `len-as-condition`
* Add `simplifiable-condition` check for extraneous constants in conditionals using and/or.
* Add `condition-evals-to-constant` check for conditionals using and/or that evaluate to a constant.
* Changed setup.py to work with [distlib](https://pypi.org/project/distlib)
* New check: ``consider-using-generator``
  This check warns when a comprehension is used inside an `any` or `all` function,
  since it is unnecessary and should be replaced by a generator instead.
  Using a generator would be less code and way faster.
* Add Github Actions to replace Travis and AppVeyor in the future


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/devel/py-pylint/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/py-pylint/PLIST
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/py-pylint/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-pylint/patches/patch-setup.py

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.43 pkgsrc/devel/py-pylint/Makefile:1.44
--- pkgsrc/devel/py-pylint/Makefile:1.43        Fri Aug 21 21:55:41 2020
+++ pkgsrc/devel/py-pylint/Makefile     Mon Feb 22 09:24:34 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.43 2020/08/21 21:55:41 adam Exp $
+# $NetBSD: Makefile,v 1.44 2021/02/22 09:24:34 adam Exp $
 
-DISTNAME=      pylint-2.6.0
+DISTNAME=      pylint-2.7.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -10,7 +10,7 @@ HOMEPAGE=     https://www.pylint.org/
 COMMENT=       Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.5.0:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
 DEPENDS+=      ${PYPKGPREFIX}-toml>=0.7.1:../../textproc/py-toml

Index: pkgsrc/devel/py-pylint/PLIST
diff -u pkgsrc/devel/py-pylint/PLIST:1.19 pkgsrc/devel/py-pylint/PLIST:1.20
--- pkgsrc/devel/py-pylint/PLIST:1.19   Fri Aug 21 21:55:41 2020
+++ pkgsrc/devel/py-pylint/PLIST        Mon Feb 22 09:24:34 2021
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2020/08/21 21:55:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.20 2021/02/22 09:24:34 adam Exp $
 bin/epylint-${PYVERSSUFFIX}
 bin/pylint-${PYVERSSUFFIX}
 bin/pyreverse-${PYVERSSUFFIX}
@@ -33,6 +33,9 @@ ${PYSITELIB}/pylint/checkers/base_checke
 ${PYSITELIB}/pylint/checkers/classes.py
 ${PYSITELIB}/pylint/checkers/classes.pyc
 ${PYSITELIB}/pylint/checkers/classes.pyo
+${PYSITELIB}/pylint/checkers/deprecated.py
+${PYSITELIB}/pylint/checkers/deprecated.pyc
+${PYSITELIB}/pylint/checkers/deprecated.pyo
 ${PYSITELIB}/pylint/checkers/design_analysis.py
 ${PYSITELIB}/pylint/checkers/design_analysis.pyc
 ${PYSITELIB}/pylint/checkers/design_analysis.pyo
@@ -48,6 +51,9 @@ ${PYSITELIB}/pylint/checkers/imports.pyo
 ${PYSITELIB}/pylint/checkers/logging.py
 ${PYSITELIB}/pylint/checkers/logging.pyc
 ${PYSITELIB}/pylint/checkers/logging.pyo
+${PYSITELIB}/pylint/checkers/mapreduce_checker.py
+${PYSITELIB}/pylint/checkers/mapreduce_checker.pyc
+${PYSITELIB}/pylint/checkers/mapreduce_checker.pyo
 ${PYSITELIB}/pylint/checkers/misc.py
 ${PYSITELIB}/pylint/checkers/misc.pyc
 ${PYSITELIB}/pylint/checkers/misc.pyo
@@ -60,9 +66,21 @@ ${PYSITELIB}/pylint/checkers/python3.pyo
 ${PYSITELIB}/pylint/checkers/raw_metrics.py
 ${PYSITELIB}/pylint/checkers/raw_metrics.pyc
 ${PYSITELIB}/pylint/checkers/raw_metrics.pyo
-${PYSITELIB}/pylint/checkers/refactoring.py
-${PYSITELIB}/pylint/checkers/refactoring.pyc
-${PYSITELIB}/pylint/checkers/refactoring.pyo
+${PYSITELIB}/pylint/checkers/refactoring/__init__.py
+${PYSITELIB}/pylint/checkers/refactoring/__init__.pyc
+${PYSITELIB}/pylint/checkers/refactoring/__init__.pyo
+${PYSITELIB}/pylint/checkers/refactoring/len_checker.py
+${PYSITELIB}/pylint/checkers/refactoring/len_checker.pyc
+${PYSITELIB}/pylint/checkers/refactoring/len_checker.pyo
+${PYSITELIB}/pylint/checkers/refactoring/not_checker.py
+${PYSITELIB}/pylint/checkers/refactoring/not_checker.pyc
+${PYSITELIB}/pylint/checkers/refactoring/not_checker.pyo
+${PYSITELIB}/pylint/checkers/refactoring/recommendation_checker.py
+${PYSITELIB}/pylint/checkers/refactoring/recommendation_checker.pyc
+${PYSITELIB}/pylint/checkers/refactoring/recommendation_checker.pyo
+${PYSITELIB}/pylint/checkers/refactoring/refactoring_checker.py
+${PYSITELIB}/pylint/checkers/refactoring/refactoring_checker.pyc
+${PYSITELIB}/pylint/checkers/refactoring/refactoring_checker.pyo
 ${PYSITELIB}/pylint/checkers/similar.py
 ${PYSITELIB}/pylint/checkers/similar.pyc
 ${PYSITELIB}/pylint/checkers/similar.pyo
@@ -144,6 +162,9 @@ ${PYSITELIB}/pylint/extensions/docparams
 ${PYSITELIB}/pylint/extensions/docstyle.py
 ${PYSITELIB}/pylint/extensions/docstyle.pyc
 ${PYSITELIB}/pylint/extensions/docstyle.pyo
+${PYSITELIB}/pylint/extensions/empty_comment.py
+${PYSITELIB}/pylint/extensions/empty_comment.pyc
+${PYSITELIB}/pylint/extensions/empty_comment.pyo
 ${PYSITELIB}/pylint/extensions/emptystring.py
 ${PYSITELIB}/pylint/extensions/emptystring.pyc
 ${PYSITELIB}/pylint/extensions/emptystring.pyo
@@ -165,9 +186,9 @@ ${PYSITELIB}/pylint/interfaces.pyo
 ${PYSITELIB}/pylint/lint/__init__.py
 ${PYSITELIB}/pylint/lint/__init__.pyc
 ${PYSITELIB}/pylint/lint/__init__.pyo
-${PYSITELIB}/pylint/lint/check_parallel.py
-${PYSITELIB}/pylint/lint/check_parallel.pyc
-${PYSITELIB}/pylint/lint/check_parallel.pyo
+${PYSITELIB}/pylint/lint/parallel.py
+${PYSITELIB}/pylint/lint/parallel.pyc
+${PYSITELIB}/pylint/lint/parallel.pyo
 ${PYSITELIB}/pylint/lint/pylinter.py
 ${PYSITELIB}/pylint/lint/pylinter.pyc
 ${PYSITELIB}/pylint/lint/pylinter.pyo
@@ -249,9 +270,42 @@ ${PYSITELIB}/pylint/reporters/ureports/n
 ${PYSITELIB}/pylint/reporters/ureports/text_writer.py
 ${PYSITELIB}/pylint/reporters/ureports/text_writer.pyc
 ${PYSITELIB}/pylint/reporters/ureports/text_writer.pyo
-${PYSITELIB}/pylint/testutils.py
-${PYSITELIB}/pylint/testutils.pyc
-${PYSITELIB}/pylint/testutils.pyo
+${PYSITELIB}/pylint/testutils/__init__.py
+${PYSITELIB}/pylint/testutils/__init__.pyc
+${PYSITELIB}/pylint/testutils/__init__.pyo
+${PYSITELIB}/pylint/testutils/checker_test_case.py
+${PYSITELIB}/pylint/testutils/checker_test_case.pyc
+${PYSITELIB}/pylint/testutils/checker_test_case.pyo
+${PYSITELIB}/pylint/testutils/constants.py
+${PYSITELIB}/pylint/testutils/constants.pyc
+${PYSITELIB}/pylint/testutils/constants.pyo
+${PYSITELIB}/pylint/testutils/decorator.py
+${PYSITELIB}/pylint/testutils/decorator.pyc
+${PYSITELIB}/pylint/testutils/decorator.pyo
+${PYSITELIB}/pylint/testutils/functional_test_file.py
+${PYSITELIB}/pylint/testutils/functional_test_file.pyc
+${PYSITELIB}/pylint/testutils/functional_test_file.pyo
+${PYSITELIB}/pylint/testutils/get_test_info.py
+${PYSITELIB}/pylint/testutils/get_test_info.pyc
+${PYSITELIB}/pylint/testutils/get_test_info.pyo
+${PYSITELIB}/pylint/testutils/global_test_linter.py
+${PYSITELIB}/pylint/testutils/global_test_linter.pyc
+${PYSITELIB}/pylint/testutils/global_test_linter.pyo
+${PYSITELIB}/pylint/testutils/lint_module_test.py
+${PYSITELIB}/pylint/testutils/lint_module_test.pyc
+${PYSITELIB}/pylint/testutils/lint_module_test.pyo
+${PYSITELIB}/pylint/testutils/output_line.py
+${PYSITELIB}/pylint/testutils/output_line.pyc
+${PYSITELIB}/pylint/testutils/output_line.pyo
+${PYSITELIB}/pylint/testutils/reporter_for_tests.py
+${PYSITELIB}/pylint/testutils/reporter_for_tests.pyc
+${PYSITELIB}/pylint/testutils/reporter_for_tests.pyo
+${PYSITELIB}/pylint/testutils/tokenize_str.py
+${PYSITELIB}/pylint/testutils/tokenize_str.pyc
+${PYSITELIB}/pylint/testutils/tokenize_str.pyo
+${PYSITELIB}/pylint/testutils/unittest_linter.py
+${PYSITELIB}/pylint/testutils/unittest_linter.pyc
+${PYSITELIB}/pylint/testutils/unittest_linter.pyo
 ${PYSITELIB}/pylint/utils/__init__.py
 ${PYSITELIB}/pylint/utils/__init__.pyc
 ${PYSITELIB}/pylint/utils/__init__.pyo

Index: pkgsrc/devel/py-pylint/distinfo
diff -u pkgsrc/devel/py-pylint/distinfo:1.32 pkgsrc/devel/py-pylint/distinfo:1.33
--- pkgsrc/devel/py-pylint/distinfo:1.32        Fri Aug 21 21:55:41 2020
+++ pkgsrc/devel/py-pylint/distinfo     Mon Feb 22 09:24:34 2021
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.32 2020/08/21 21:55:41 adam Exp $
+$NetBSD: distinfo,v 1.33 2021/02/22 09:24:34 adam Exp $
 
-SHA1 (pylint-2.6.0.tar.gz) = b239ddb802d0abe7e9066769afcc197fc4109e31
-RMD160 (pylint-2.6.0.tar.gz) = 85dca886681a537c1c43e394d032bc7b587ad92d
-SHA512 (pylint-2.6.0.tar.gz) = 02881fe14401bbe946618ef947c8db320a6c8dd93626402260d60468538ce67b61d1e8b921bfb1a6020514dd392e9b0021c97ddb60b45866c2d2241224f93f08
-Size (pylint-2.6.0.tar.gz) = 680289 bytes
-SHA1 (patch-setup.py) = 56a63cfe22fc22563b7e39b0567bd36437096d01
+SHA1 (pylint-2.7.0.tar.gz) = 5d48065d0daa91ec5fd14790a2e0ec8eae13cb29
+RMD160 (pylint-2.7.0.tar.gz) = a098ce0d5333612f9062d61857eadf67a608fc47
+SHA512 (pylint-2.7.0.tar.gz) = 081150e8aa3fe1fdeaded0ef253988887a6f4cde0f4c9c151b5191353d1e2a81180e3a09ef48a062ef111270ca71c05590f96332a8d8b89d69380359f41f28d7
+Size (pylint-2.7.0.tar.gz) = 708709 bytes
+SHA1 (patch-setup.py) = b6ac9d986c8988fe4c2d88f41ffa795881b44ce8

Index: pkgsrc/devel/py-pylint/patches/patch-setup.py
diff -u pkgsrc/devel/py-pylint/patches/patch-setup.py:1.3 pkgsrc/devel/py-pylint/patches/patch-setup.py:1.4
--- pkgsrc/devel/py-pylint/patches/patch-setup.py:1.3   Sat May 16 02:11:40 2020
+++ pkgsrc/devel/py-pylint/patches/patch-setup.py       Mon Feb 22 09:24:34 2021
@@ -1,13 +1,15 @@
-$NetBSD: patch-setup.py,v 1.3 2020/05/16 02:11:40 joerg Exp $
+$NetBSD: patch-setup.py,v 1.4 2021/02/22 09:24:34 adam Exp $
 
---- setup.py.orig      2020-05-15 22:33:46.785574641 +0000
+Fix file encoding.
+
+--- setup.py.orig      2021-02-21 16:16:02.000000000 +0000
 +++ setup.py
-@@ -49,7 +49,7 @@ except ImportError:
+@@ -57,7 +57,7 @@ __docformat__ = "restructuredtext en"
  base_dir = os.path.dirname(__file__)
  
- __pkginfo__ = {}
+ __pkginfo__: Dict[str, Any] = {}
 -with open(os.path.join(base_dir, "pylint", "__pkginfo__.py")) as pkginfo_fp:
-+with open(os.path.join(base_dir, "pylint", "__pkginfo__.py"), encoding="UTF-8") as pkginfo_fp:
++with open(os.path.join(base_dir, "pylint", "__pkginfo__.py"), encoding="utf-8") as pkginfo_fp:
      exec(pkginfo_fp.read(), __pkginfo__)
  scripts = __pkginfo__.get("scripts", [])
  data_files = __pkginfo__.get("data_files", None)



Home | Main Index | Thread Index | Old Index