pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-pylint py-pylint: updated to 2.3.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/097448600759
branches: trunk
changeset: 320108:097448600759
user: adam <adam%pkgsrc.org@localhost>
date: Thu Feb 28 09:20:07 2019 +0000
description:
py-pylint: updated to 2.3.0
What's New in Pylint 2.3.0?
* Protect against NonDeducibleTypeHierarchy when calling semi-private is_subtype
astroid.helpers.is_subtype raises NonDeducibleTypeHierarchy when it cannot infer
the base classes of the given types, but that makes sense in its context given that
the method is mostly used to inform the inference process about the hierarchy of classes.
Doesn't make that much sense for pylint itself, which is why we're handling the
exception here, rather than in astroid
* Added a new command line option list-groups for listing all the check groups pylint knows about.
* Allow BaseException for emitting broad-except, just like Exception.
* Fixed a crash that occurred for bad-str-strip-call when strip() received None
* Don't emit *-not-iterating checks for builtins consumed by itertools
* Fix a crash caused by iterating over Uninferable in a string formatting check.
* Fixed false positives for no-self-argument and unsubscriptable-object when using __class_getitem__ (new in Python 3.7)
* Support Ellipsis as a synonym for pass statements.
* fixme gets triggered only on comments.
* Fixed a false positive for unused-variable and nonlocal assignments
* Added load_configuration() hook for plugins
New optional hook for plugins is added: load_configuration().
This hook is executed after configuration is loaded to prevent
overwriting plugin specific configuration via user-based
configuration.
* Fix missing-raises-doc false positive (W9006)
* Exempt starred unpacking from *-not-iterating Python 3 checks
* Make compare-to-zero less zealous by checking against equality and identity
* Add no-else-raise warning (R1720)
* Exempt yield from from *-not-iterating Python 3 checks.
* Fix incorrect generation of no-else-return warnings (R1705)
Fixed issue where if statements with nested if statements
were incorrectly being flagged as no-else-return in some cases and
not being flagged as no-else-return in other cases. Added tests
for verification and updated pylint source files to eliminate newly
exposed warnings.
* Fix false positive with not-async-context-manager caused by not understanding contextlib.asynccontextmanager
* Refactor bad-reversed-sequence to account for more objects that can define __reversed__
One such object would be an enum class, for which __reversed__ yields each individual enum.
As such, the check for bad-reversed-sequence needs to not differentiate between classes
and instances when it comes for checking of __reversed__ presence.
* Added wrong-exception-operation
Used when an operation is done against an exception, but the operation
is not valid for the exception in question. Usually emitted when having
binary operations between exceptions in except handlers.
* no-member is emitted for enums when they lack a member
Previously we weren't doing this because we detected a
__getattr__ implementation on the Enum class
(and this check is skipped for classes with __getattr__),
but that is fine for Enums, given that they are inferred in a customised
way in astroid.
* Generalize chained-comparison
Previous version incorrectly detects a < b < c and b < d and fails to
detect a < b < c and c < d.
* Avoid popping __main__ when using multiple jobs
* Add a new option 'check-str-concat-over-line-jumps' to check 'implicit-str-concat-in-sequence'
* Fixes for the new style logging format linter.
The number of arguments was not handled properly, leading to an always
successful check.
* Fix false positive not-callable for uninferable properties.
* Fix false positive useless-else-on-loop if the break is deep in the else
of an inner loop.
diffstat:
devel/py-pylint/Makefile | 8 ++++----
devel/py-pylint/PLIST | 35 ++++++++++++++++++++++++++++++++++-
devel/py-pylint/distinfo | 10 +++++-----
3 files changed, 43 insertions(+), 10 deletions(-)
diffs (169 lines):
diff -r 0d07c31ec769 -r 097448600759 devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile Thu Feb 28 09:17:41 2019 +0000
+++ b/devel/py-pylint/Makefile Thu Feb 28 09:20:07 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.33 2018/11/28 14:37:03 adam Exp $
+# $NetBSD: Makefile,v 1.34 2019/02/28 09:20:07 adam Exp $
-DISTNAME= pylint-2.2.2
+DISTNAME= pylint-2.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
@@ -10,7 +10,7 @@
COMMENT= Python source code analyzer
LICENSE= gnu-gpl-v2
-DEPENDS+= ${PYPKGPREFIX}-astroid>=2.0.1:../../devel/py-astroid
+DEPENDS+= ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid
DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
DEPENDS+= ${PYPKGPREFIX}-mccabe-[0-9]*:../../devel/py-mccabe
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
@@ -27,7 +27,7 @@
post-install:
.for file in epylint pylint pyreverse symilar
cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
+ ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
.endfor
diff -r 0d07c31ec769 -r 097448600759 devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST Thu Feb 28 09:17:41 2019 +0000
+++ b/devel/py-pylint/PLIST Thu Feb 28 09:20:07 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2018/11/27 16:16:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.15 2019/02/28 09:20:07 adam Exp $
bin/epylint-${PYVERSSUFFIX}
bin/pylint-${PYVERSSUFFIX}
bin/pyreverse-${PYVERSSUFFIX}
@@ -447,6 +447,9 @@
${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence.txt
${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_latin1.py
${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_latin1.txt
+${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_multiline.py
+${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_multiline.rc
+${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_multiline.txt
${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_utf8.py
${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence_utf8.txt
${PYSITELIB}/pylint/test/functional/import_error.py
@@ -557,6 +560,7 @@
${PYSITELIB}/pylint/test/functional/member_checks_ignore_none.py
${PYSITELIB}/pylint/test/functional/member_checks_ignore_none.rc
${PYSITELIB}/pylint/test/functional/member_checks_ignore_none.txt
+${PYSITELIB}/pylint/test/functional/member_checks_inference_improvements.py
${PYSITELIB}/pylint/test/functional/member_checks_no_hints.py
${PYSITELIB}/pylint/test/functional/member_checks_no_hints.rc
${PYSITELIB}/pylint/test/functional/member_checks_no_hints.txt
@@ -618,10 +622,15 @@
${PYSITELIB}/pylint/test/functional/nested_blocks_issue1088.txt
${PYSITELIB}/pylint/test/functional/no_classmethod_decorator.py
${PYSITELIB}/pylint/test/functional/no_classmethod_decorator.txt
+${PYSITELIB}/pylint/test/functional/no_else_raise.py
+${PYSITELIB}/pylint/test/functional/no_else_raise.txt
${PYSITELIB}/pylint/test/functional/no_else_return.py
${PYSITELIB}/pylint/test/functional/no_else_return.txt
${PYSITELIB}/pylint/test/functional/no_name_in_module.py
${PYSITELIB}/pylint/test/functional/no_name_in_module.txt
+${PYSITELIB}/pylint/test/functional/no_self_argument_py37.py
+${PYSITELIB}/pylint/test/functional/no_self_argument_py37.rc
+${PYSITELIB}/pylint/test/functional/no_self_argument_py37.txt
${PYSITELIB}/pylint/test/functional/no_self_use.py
${PYSITELIB}/pylint/test/functional/no_self_use.txt
${PYSITELIB}/pylint/test/functional/no_self_use_py3.py
@@ -645,6 +654,9 @@
${PYSITELIB}/pylint/test/functional/not_async_context_manager.py
${PYSITELIB}/pylint/test/functional/not_async_context_manager.rc
${PYSITELIB}/pylint/test/functional/not_async_context_manager.txt
+${PYSITELIB}/pylint/test/functional/not_async_context_manager_py37.py
+${PYSITELIB}/pylint/test/functional/not_async_context_manager_py37.rc
+${PYSITELIB}/pylint/test/functional/not_async_context_manager_py37.txt
${PYSITELIB}/pylint/test/functional/not_callable.py
${PYSITELIB}/pylint/test/functional/not_callable.txt
${PYSITELIB}/pylint/test/functional/not_context_manager.py
@@ -672,7 +684,15 @@
${PYSITELIB}/pylint/test/functional/raising_non_exception_py3.txt
${PYSITELIB}/pylint/test/functional/raising_self.py
${PYSITELIB}/pylint/test/functional/raising_self.txt
+${PYSITELIB}/pylint/test/functional/recursion_error_2667.py
+${PYSITELIB}/pylint/test/functional/recursion_error_2667.txt
${PYSITELIB}/pylint/test/functional/recursion_error_940.py
+${PYSITELIB}/pylint/test/functional/recursion_error_crash.py
+${PYSITELIB}/pylint/test/functional/recursion_error_crash.txt
+${PYSITELIB}/pylint/test/functional/recursion_error_crash_2683.py
+${PYSITELIB}/pylint/test/functional/recursion_error_crash_2683.txt
+${PYSITELIB}/pylint/test/functional/recursion_error_crash_astroid_623.py
+${PYSITELIB}/pylint/test/functional/recursion_error_crash_astroid_623.txt
${PYSITELIB}/pylint/test/functional/redefine_in_handler.py
${PYSITELIB}/pylint/test/functional/redefine_in_handler.rc
${PYSITELIB}/pylint/test/functional/redefine_in_handler.txt
@@ -739,6 +759,8 @@
${PYSITELIB}/pylint/test/functional/string_formatting_disable.rc
${PYSITELIB}/pylint/test/functional/string_formatting_disable.txt
${PYSITELIB}/pylint/test/functional/string_formatting_failed_inference.py
+${PYSITELIB}/pylint/test/functional/string_formatting_failed_inference_py35.py
+${PYSITELIB}/pylint/test/functional/string_formatting_failed_inference_py35.rc
${PYSITELIB}/pylint/test/functional/string_formatting_py27.py
${PYSITELIB}/pylint/test/functional/string_formatting_py27.rc
${PYSITELIB}/pylint/test/functional/string_formatting_py27.txt
@@ -818,6 +840,8 @@
${PYSITELIB}/pylint/test/functional/trailing_whitespaces.txt
${PYSITELIB}/pylint/test/functional/try_except_raise.py
${PYSITELIB}/pylint/test/functional/try_except_raise.txt
+${PYSITELIB}/pylint/test/functional/try_except_raise_crash.py
+${PYSITELIB}/pylint/test/functional/try_except_raise_crash.txt
${PYSITELIB}/pylint/test/functional/unbalanced_tuple_unpacking.py
${PYSITELIB}/pylint/test/functional/unbalanced_tuple_unpacking.txt
${PYSITELIB}/pylint/test/functional/unbalanced_tuple_unpacking_py30.py
@@ -868,6 +892,9 @@
${PYSITELIB}/pylint/test/functional/unrecognized_inline_option.txt
${PYSITELIB}/pylint/test/functional/unsubscriptable_value.py
${PYSITELIB}/pylint/test/functional/unsubscriptable_value.txt
+${PYSITELIB}/pylint/test/functional/unsubscriptable_value_py37.py
+${PYSITELIB}/pylint/test/functional/unsubscriptable_value_py37.rc
+${PYSITELIB}/pylint/test/functional/unsubscriptable_value_py37.txt
${PYSITELIB}/pylint/test/functional/unsupported_assignment_operation.py
${PYSITELIB}/pylint/test/functional/unsupported_assignment_operation.txt
${PYSITELIB}/pylint/test/functional/unsupported_binary_operation.py
@@ -895,6 +922,9 @@
${PYSITELIB}/pylint/test/functional/unused_typing_imports.rc
${PYSITELIB}/pylint/test/functional/unused_variable.py
${PYSITELIB}/pylint/test/functional/unused_variable.txt
+${PYSITELIB}/pylint/test/functional/unused_variable_py36.py
+${PYSITELIB}/pylint/test/functional/unused_variable_py36.rc
+${PYSITELIB}/pylint/test/functional/unused_variable_py36.txt
${PYSITELIB}/pylint/test/functional/used_before_assignment_488.py
${PYSITELIB}/pylint/test/functional/used_before_assignment_issue1081.py
${PYSITELIB}/pylint/test/functional/used_before_assignment_issue1081.txt
@@ -932,6 +962,8 @@
${PYSITELIB}/pylint/test/functional/with_used_before_assign.txt
${PYSITELIB}/pylint/test/functional/with_using_generator.py
${PYSITELIB}/pylint/test/functional/with_using_generator.txt
+${PYSITELIB}/pylint/test/functional/wrong_exception_operation.py
+${PYSITELIB}/pylint/test/functional/wrong_exception_operation.txt
${PYSITELIB}/pylint/test/functional/wrong_import_order.py
${PYSITELIB}/pylint/test/functional/wrong_import_order.txt
${PYSITELIB}/pylint/test/functional/wrong_import_order2.py
@@ -1120,6 +1152,7 @@
${PYSITELIB}/pylint/test/regrtest_data/dummy/another.py
${PYSITELIB}/pylint/test/regrtest_data/dummy/dummy.py
${PYSITELIB}/pylint/test/regrtest_data/dummy_plugin.rc
+${PYSITELIB}/pylint/test/regrtest_data/dummy_plugin/dummy_conf_plugin.py
${PYSITELIB}/pylint/test/regrtest_data/dummy_plugin/dummy_plugin.py
${PYSITELIB}/pylint/test/regrtest_data/empty.py
${PYSITELIB}/pylint/test/regrtest_data/func_block_disable_msg.py
diff -r 0d07c31ec769 -r 097448600759 devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo Thu Feb 28 09:17:41 2019 +0000
+++ b/devel/py-pylint/distinfo Thu Feb 28 09:20:07 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.22 2018/11/28 14:37:03 adam Exp $
+$NetBSD: distinfo,v 1.23 2019/02/28 09:20:07 adam Exp $
-SHA1 (pylint-2.2.2.tar.gz) = ecce34a1c1c1f51201e4249f03946c65bf922feb
-RMD160 (pylint-2.2.2.tar.gz) = fd6c9ea56f9e46693a4738a302026e5b29cfebcf
-SHA512 (pylint-2.2.2.tar.gz) = 29a9bf39413479cb2996b1a2e0d3aaa1845faf3038b17c30948554c359fe8cc858e9bfc0488ed0af204daea22e0ab36d765c447eae66ac7ac6d60d66d9a33fef
-Size (pylint-2.2.2.tar.gz) = 568313 bytes
+SHA1 (pylint-2.3.0.tar.gz) = bfca8cfe03cf86d24bc736a88d062809e3380571
+RMD160 (pylint-2.3.0.tar.gz) = a3ee956b2978321bbca93289ecd1c5201d4fbce9
+SHA512 (pylint-2.3.0.tar.gz) = f36a9564dc6eaaa22a3ac539d96ae89484f6720f9bdeb8463aaf411f3fea9fcb955293363b7f59690a723e466e5495947d75bbcbeafdaa8ffde4e0e694fe3e4e
+Size (pylint-2.3.0.tar.gz) = 577567 bytes
Home |
Main Index |
Thread Index |
Old Index