Received: by mail.netbsd.org (Postfix, from userid 605) id 972DD84DCD; Tue, 5 May 2020 18:21:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1FEA384DCB for ; Tue, 5 May 2020 18:21:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 3sbxpCYbbJ5k for ; Tue, 5 May 2020 18:21:26 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id EA95D84D4E for ; Tue, 5 May 2020 18:21:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E4904FB27; Tue, 5 May 2020 18:21:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1588702885282150" MIME-Version: 1.0 Date: Tue, 5 May 2020 18:21:25 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/devel/py-pylint To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20200505182125.E4904FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1588702885282150 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: adam Date: Tue May 5 18:21:25 UTC 2020 Modified Files: pkgsrc/devel/py-pylint: Makefile PLIST distinfo Log Message: py-pylint: updated to 2.5.2 What's New in Pylint 2.5.2? * ``pylint.Run`` accepts ``do_exit`` as a deprecated parameter What's New in Pylint 2.5.1? * Fix a crash in `method-hidden` lookup for unknown base classes * Revert pylint.Run's `exit` parameter to ``do_exit`` This has been inadvertently changed several releases ago to ``do_exit``. * ``no-value-for-parameter`` variadic detection has improved for assign statements * Allow package files to be properly discovered with multiple jobs * Allow linting directories without `__init__.py` which was a regression in 2.5. What's New in Pylint 2.5.0? * Fix a false negative for ``undefined-variable`` when using class attribute in comprehension. * Fix a false positive for ``undefined-variable`` when using class attribute in decorator or as type hint. * Remove HTML quoting of messages in JSON output. * Adjust the `invalid-name` rule to work with non-ASCII identifiers and add the `non-ascii-name` rule. * Positional-only arguments are taken in account for ``useless-super-delegation`` * ``unidiomatic-typecheck`` is no longer emitted for ``in`` and ``not in`` operators * Positional-only argument annotations are taken in account for ``unused-import`` * Add a command to list available extensions. * Allow used variables to be properly consumed when different checks are enabled / disabled * Fix dangerous-default-value rule to account for keyword argument defaults * Fix a false positive of ``self-assigning-variable`` on tuple unpacking. * ``no-self-use`` is no longer emitted for typing stubs. * Fix a false positive for ``undefined-variable`` when ``__class__`` is used * Emit ``invalid-name`` for variables defined in loops at module level. * Add a check for cases where the second argument to `isinstance` is not a type. * Add 'notes-rgx' option, to be used for fixme check. * ``function-redefined`` exempts function redefined on a condition. * ``typing.overload`` functions are exempted from docstring checks * Emit ``invalid-overridden-method`` for improper async def overrides. * Do not allow ``python -m pylint ...`` to import user code ``python -m pylint ...`` adds the current working directory as the first element of ``sys.path``. This opens up a potential security hole where ``pylint`` will import user level code as long as that code resides in modules having the same name as stdlib or pylint's own modules. * Add `dummy-variables-rgx` option for `_redeclared-assigned-name` check. * Fixed graph creation for relative paths * Add a check for asserts on string literals. * `not in` is considered iterating context for some of the Python 3 porting checkers. * A new check `inconsistent-quotes` was added. * Add a check for non string assignment to __name__ attribute. * `__pow__`, `__imatmul__`, `__trunc__`, `__floor__`, and `__ceil__` are recognized as special method names. * Added errors for protocol functions when invalid return types are detected. E0304 (invalid-bool-returned): __bool__ did not return a bool E0305 (invalid-index-returned): __index__ did not return an integer E0306 (invalid-repr-returned): __repr__ did not return a string E0307 (invalid-str-returned): __str__ did not return a string E0308 (invalid-bytes-returned): __bytes__ did not return a string E0309 (invalid-hash-returned): __hash__ did not return an integer E0310 (invalid-length-hint-returned): __length_hint__ did not return a non-negative integer E0311 (invalid-format-returned): __format__ did not return a string E0312 (invalid-getnewargs-returned): __getnewargs__ did not return a tuple E0313 (invalid-getnewargs-ex-returned): __getnewargs_ex__ did not return a tuple of the form (tuple, dict) * ``missing-*-docstring`` can look for ``__doc__`` assignments. * ``undefined-variable`` can now find undefined loop iterables * ``safe_infer`` can infer a value as long as all the paths share the same type. * Add a --fail-under flag, also configurable in a .pylintrc file. If the final score is more than the specified score, it's considered a success and pylint exits with exitcode 0. Otherwise, it's considered a failure and pylint exits with its current exitcode based on the messages issued. * Don't emit ``line-too-long`` for multilines when `disable=line-too-long` comment stands at their end * Fixed an ``AttributeError`` caused by improper handling of ``dataclasses`` inference in ``pyreverse`` * Do not exempt bare except from ``undefined-variable`` and similar checks If a node was wrapped in a ``TryExcept``, ``pylint`` was taking a hint from the except handler when deciding to emit or not a message. We were treating bare except as a fully fledged ignore but only the corresponding exceptions should be handled that way (e.g. ``NameError`` or ``ImportError``) * No longer emit ``assignment-from-no-return`` when a function only raises an exception * Allow import aliases to exempt ``import-error`` when used in type annotations. * ``Ellipsis` is exempted from ``multiple-statements`` for function overloads. * No longer emit ``invalid-name`` for non-constants found at module level. Pylint was taking the following statement from PEP-8 too far, considering all module level variables as constants, which is not what the statement is saying: `Constants are usually defined on a module level and written in all capital letters with underscores separating words.` * Allow ``implicit-str-concat-in-sequence`` to be emitted for string juxtaposition * ``implicit-str-concat-in-sequence`` was renamed ``implicit-str-concat`` * The ``json`` reporter no longer bypasses ``redirect_stdout``. * Move ``NoFileError``, ``OutputLine``, ``FunctionalTestReporter``, ``FunctionalTestFile``, ``LintModuleTest`` and related methods from ``test_functional.py`` to ``pylint.testutils`` to help testing for 3rd party pylint plugins. * Can read config from a setup.cfg or pyproject.toml file. * Fix exception-escape false positive with generators * ``inspect.getargvalues`` is no longer marked as deprecated. * A new check ``f-string-without-interpolation`` was added * Flag mutable ``collections.*`` utilities as dangerous defaults * ``docparams`` extension supports multiple types in raises sections. Multiple types can also be separated by commas in all valid sections. * Allow parallel linting when run under Prospector * Fixed false positives of ``method-hidden`` when a subclass defines the method that is being hidden. * Python 3 porting mode is 30-50% faster on most codebases * Python 3 porting mode no longer swallows syntax errors * Pass the actual PyLinter object to sub processes to allow using custom PyLinter classes. PyLinter object (and all its members except reporter) needs to support pickling so the PyLinter object can be passed to worker processes. * Clean up setup.py Make pytest-runner a requirement only if running tests, similar to McCabe. Clean up the setup.py file, resolving a number of warnings around it. * Handle SyntaxError in files passed via ``--from-stdin`` option Pylint no longer outputs a traceback, if a file, read from stdin, contains a syntaxerror. * Fix uppercase style to disallow 3+ uppercase followed by lowercase. * Fixed ``undefined-variable`` and ``unused-import`` false positives when using a metaclass via an attribute. * Emit ``unused-argument`` for functions that partially uses their argument list before raising an exception. * Fixed ``broad_try_clause`` extension to check try/finally statements and to check for nested statements (e.g., inside of an ``if`` statement). * Recognize classes explicitly inheriting from ``abc.ABC`` or having an ``abc.ABCMeta`` metaclass as abstract. This makes them not trigger W0223. * Fix overzealous `arguments-differ` when overridden function uses variadics No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. * Multiple types of string formatting are allowed in logging functions. The `logging-fstring-interpolation` message has been brought back to allow multiple types of string formatting to be used. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 pkgsrc/devel/py-pylint/Makefile cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/py-pylint/PLIST cvs rdiff -u -r1.28 -r1.29 pkgsrc/devel/py-pylint/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1588702885282150 Content-Disposition: inline Content-Length: 3687 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/py-pylint/Makefile diff -u pkgsrc/devel/py-pylint/Makefile:1.39 pkgsrc/devel/py-pylint/Makefile:1.40 --- pkgsrc/devel/py-pylint/Makefile:1.39 Sun Mar 22 22:50:52 2020 +++ pkgsrc/devel/py-pylint/Makefile Tue May 5 18:21:25 2020 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.39 2020/03/22 22:50:52 rillig Exp $ +# $NetBSD: Makefile,v 1.40 2020/05/05 18:21:25 adam Exp $ -DISTNAME= pylint-2.4.4 +DISTNAME= pylint-2.5.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/} Index: pkgsrc/devel/py-pylint/PLIST diff -u pkgsrc/devel/py-pylint/PLIST:1.17 pkgsrc/devel/py-pylint/PLIST:1.18 --- pkgsrc/devel/py-pylint/PLIST:1.17 Tue Oct 1 11:38:06 2019 +++ pkgsrc/devel/py-pylint/PLIST Tue May 5 18:21:25 2020 @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.17 2019/10/01 11:38:06 adam Exp $ +@comment $NetBSD: PLIST,v 1.18 2020/05/05 18:21:25 adam Exp $ bin/epylint-${PYVERSSUFFIX} bin/pylint-${PYVERSSUFFIX} bin/pyreverse-${PYVERSSUFFIX} @@ -141,9 +141,24 @@ ${PYSITELIB}/pylint/graph.pyo ${PYSITELIB}/pylint/interfaces.py ${PYSITELIB}/pylint/interfaces.pyc ${PYSITELIB}/pylint/interfaces.pyo -${PYSITELIB}/pylint/lint.py -${PYSITELIB}/pylint/lint.pyc -${PYSITELIB}/pylint/lint.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/pylinter.py +${PYSITELIB}/pylint/lint/pylinter.pyc +${PYSITELIB}/pylint/lint/pylinter.pyo +${PYSITELIB}/pylint/lint/report_functions.py +${PYSITELIB}/pylint/lint/report_functions.pyc +${PYSITELIB}/pylint/lint/report_functions.pyo +${PYSITELIB}/pylint/lint/run.py +${PYSITELIB}/pylint/lint/run.pyc +${PYSITELIB}/pylint/lint/run.pyo +${PYSITELIB}/pylint/lint/utils.py +${PYSITELIB}/pylint/lint/utils.pyc +${PYSITELIB}/pylint/lint/utils.pyo ${PYSITELIB}/pylint/message/__init__.py ${PYSITELIB}/pylint/message/__init__.pyc ${PYSITELIB}/pylint/message/__init__.pyo @@ -225,6 +240,9 @@ ${PYSITELIB}/pylint/utils/ast_walker.pyo ${PYSITELIB}/pylint/utils/file_state.py ${PYSITELIB}/pylint/utils/file_state.pyc ${PYSITELIB}/pylint/utils/file_state.pyo +${PYSITELIB}/pylint/utils/pragma_parser.py +${PYSITELIB}/pylint/utils/pragma_parser.pyc +${PYSITELIB}/pylint/utils/pragma_parser.pyo ${PYSITELIB}/pylint/utils/utils.py ${PYSITELIB}/pylint/utils/utils.pyc ${PYSITELIB}/pylint/utils/utils.pyo Index: pkgsrc/devel/py-pylint/distinfo diff -u pkgsrc/devel/py-pylint/distinfo:1.28 pkgsrc/devel/py-pylint/distinfo:1.29 --- pkgsrc/devel/py-pylint/distinfo:1.28 Sat Dec 21 23:36:22 2019 +++ pkgsrc/devel/py-pylint/distinfo Tue May 5 18:21:25 2020 @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.28 2019/12/21 23:36:22 joerg Exp $ +$NetBSD: distinfo,v 1.29 2020/05/05 18:21:25 adam Exp $ -SHA1 (pylint-2.4.4.tar.gz) = cbb0c79eda24019a3b974aca374dc46fabab1eee -RMD160 (pylint-2.4.4.tar.gz) = 697ff5f5b2389de243f8ceff96db4b16eb71b63c -SHA512 (pylint-2.4.4.tar.gz) = 835e0687ebc76c530e0042c5a5188b8aedab446531f621627e990cbeb37ab6ecc8de0f8c6ab171abaa63488e049e8d7782958461421f9a4127435f56b6d2ed0b -Size (pylint-2.4.4.tar.gz) = 646113 bytes +SHA1 (pylint-2.5.2.tar.gz) = c79bd688a881e42ed68cfa19915b900439258fdc +RMD160 (pylint-2.5.2.tar.gz) = 1c6af3008c48acd7a9617d2170cc0e3ba68cfda3 +SHA512 (pylint-2.5.2.tar.gz) = 94debcf0a26ac61ce2e161180f300677279b7e251894c4b368ffe7e70e480f53e59475e1d84df7daf7d1bff5256f75d363fe415960986dee99e634fe95e6bd3c +Size (pylint-2.5.2.tar.gz) = 683111 bytes SHA1 (patch-README.rst) = 315caa017c1a94b6487f59c962bf31bb1ed73ee6 --_----------=_1588702885282150--