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.2.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/6868b8efc2f9
branches: trunk
changeset: 387804:6868b8efc2f9
user: adam <adam%pkgsrc.org@localhost>
date: Mon Nov 26 09:09:34 2018 +0000
description:
py-pylint: updated to 2.2.0
What's New in Pylint 2.2?
* Consider range() objects for undefined-loop-variable leaking from iteration.
* deprecated-method can use the attribute name for identifying a deprecated method
Previously we were using the fully qualified name, which we still do, but the fully
qualified name for some unittest deprecated aliases leads to a generic
deprecation function. Instead on relying on that, we now also rely on the attribute
name, which should solve some false positives.
* Fix compatibility with changes to stdlib tokenizer.
* pylint is less eager to consume the whole line for pragmas
* Obtain the correct number of CPUs for virtualized or containerized environments.
* Change unbalanced-tuple-unpacking back to a warning.
It used to be a warning until a couple of years ago, after it was promoted to
an error. But the check might be suggesting the wrong thing in some cases,
for instance when checking against sys.argv which cannot be known at static
analysis time. Given it might rely on potential unknown data, it's best to
have it as a warning.
* Remove enumerate usage suggestion when defining __iter__ (C0200)
* Emit too-many-starred-assignment only when the number of Starred nodes is per assignment elements
* try-except-raise checker now handles multilevel inheritance hirerachy for exceptions correctly.
* Add a new check, simplifiable-if-expression for expressions like True if cond else False.
* too-few-public-methods is not reported for typing.NamedTuple
* too-few-public-methods is not reported for dataclasses created with options.
* Remove wrong modules from 'bad-python3-import'.
* The json reporter prints an empty list when no messages are emitted
* Add a new check, duplicate-string-formatting-argument
This new check is emitted whenever a duplicate string formatting argument
is found.
* assignment-from-no-return is not emitted for coroutines.
* Report format string type mismatches.
* consider-using-ternary and simplified-boolean-expression no longer emit for sequence based checks
* Handle AstroidSyntaxError when trying to import a module.
* Allow __module__ to be redefined at a class level.
* pylint used to emit a unused-variable error if unused import was found in the function. Now instead of
unused-variable, unused-import is emitted.
* Handle asyncio.coroutine when looking for not-an-iterable check.
* The locally-enabled check is gone.
* Infer decorated methods when looking for method-hidden
* Pick the latest value from the inferred values when looking for raising-non-exception
* Extend the TYPE_CHECKING guard to TYPE_CHECKING name as well, not just the attribute
* Ignore import x.y.z as z cases for checker useless-import-alias.
* Fix false positive undefined-variable and used-before-assignment with nonlocal keyword usage.
* Stop protected-access exception for missing class attributes
* Don't emit assignment-from-no-return for decorated function nodes
* unnecessary-pass is now also emitted when a function or class contains only docstring and pass statement.
In Python, stubbed functions often have a body that contains just a single pass statement,
indicating that the function doesn't do anything. However, a stubbed function can also have just a
docstring, and function with a docstring and no body also does nothing.
* duplicate-argument-name is emitted for more than one duplicate argument per function
* Allow double indentation levels for more distinguishable indentations
* Consider tuples in exception handler for try-except-raise.
* Fix astroid.ClassDef check in checkers.utils.is_subclass_of
* Fix wildcard imports being ignored by the import checker
* Fix external/internal distinction being broken in the import graph
* Fix wildcard import check not skipping __init__.py
* Fix --ignore-imports to understand multi-line imports
* Add a new check 'implicit-str-concat-in-sequence' to spot string concatenation inside lists, sets & tuples.
* literal-comparison is now emitted for 0 and 1 literals.
diffstat:
devel/py-pylint/ALTERNATIVES | 16 +++++++-------
devel/py-pylint/Makefile | 9 ++++---
devel/py-pylint/PLIST | 48 +++++++++++++++++++++++++------------------
devel/py-pylint/distinfo | 10 ++++----
4 files changed, 46 insertions(+), 37 deletions(-)
diffs (224 lines):
diff -r 930c8b121f92 -r 6868b8efc2f9 devel/py-pylint/ALTERNATIVES
--- a/devel/py-pylint/ALTERNATIVES Mon Nov 26 09:00:52 2018 +0000
+++ b/devel/py-pylint/ALTERNATIVES Mon Nov 26 09:09:34 2018 +0000
@@ -1,8 +1,8 @@
-bin/epylint @PREFIX@/bin/epylint@PYVERSSUFFIX@
-bin/pylint @PREFIX@/bin/pylint@PYVERSSUFFIX@
-bin/pyreverse @PREFIX@/bin/pyreverse@PYVERSSUFFIX@
-bin/symilar @PREFIX@/bin/symilar@PYVERSSUFFIX@
-man/man1/epylint.1 @PREFIX@/man/man1/epylint@PYVERSSUFFIX@.1
-man/man1/pylint.1 @PREFIX@/man/man1/pylint@PYVERSSUFFIX@.1
-man/man1/pyreverse.1 @PREFIX@/man/man1/pyreverse@PYVERSSUFFIX@.1
-man/man1/symilar.1 @PREFIX@/man/man1/symilar@PYVERSSUFFIX@.1
+bin/epylint @PREFIX@/bin/epylint-@PYVERSSUFFIX@
+bin/pylint @PREFIX@/bin/pylint-@PYVERSSUFFIX@
+bin/pyreverse @PREFIX@/bin/pyreverse-@PYVERSSUFFIX@
+bin/symilar @PREFIX@/bin/symilar-@PYVERSSUFFIX@
+man/man1/epylint.1 @PREFIX@/man/man1/epylint-@PYVERSSUFFIX@.1
+man/man1/pylint.1 @PREFIX@/man/man1/pylint-@PYVERSSUFFIX@.1
+man/man1/pyreverse.1 @PREFIX@/man/man1/pyreverse-@PYVERSSUFFIX@.1
+man/man1/symilar.1 @PREFIX@/man/man1/symilar-@PYVERSSUFFIX@.1
diff -r 930c8b121f92 -r 6868b8efc2f9 devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile Mon Nov 26 09:00:52 2018 +0000
+++ b/devel/py-pylint/Makefile Mon Nov 26 09:09:34 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2018/08/06 19:58:41 adam Exp $
+# $NetBSD: Makefile,v 1.31 2018/11/26 09:09:34 adam Exp $
-DISTNAME= pylint-2.1.1
+DISTNAME= pylint-2.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
@@ -26,9 +26,10 @@
post-install:
.for file in epylint pylint pyreverse symilar
- ${MV} ${DESTDIR}${PREFIX}/bin/${file} ${DESTDIR}${PREFIX}/bin/${file}${PYVERSSUFFIX} || ${TRUE}
+ cd ${DESTDIR}${PREFIX}/bin && \
+ ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
- ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}${PYVERSSUFFIX}.1
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
.endfor
do-test:
diff -r 930c8b121f92 -r 6868b8efc2f9 devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST Mon Nov 26 09:00:52 2018 +0000
+++ b/devel/py-pylint/PLIST Mon Nov 26 09:09:34 2018 +0000
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.12 2018/08/02 15:19:23 adam Exp $
-bin/epylint${PYVERSSUFFIX}
-bin/pylint${PYVERSSUFFIX}
-bin/pyreverse${PYVERSSUFFIX}
-bin/symilar${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.13 2018/11/26 09:09:34 adam Exp $
+bin/epylint-${PYVERSSUFFIX}
+bin/pylint-${PYVERSSUFFIX}
+bin/pyreverse-${PYVERSSUFFIX}
+bin/symilar-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -177,7 +177,6 @@
${PYSITELIB}/pylint/reporters/ureports/text_writer.py
${PYSITELIB}/pylint/reporters/ureports/text_writer.pyc
${PYSITELIB}/pylint/reporters/ureports/text_writer.pyo
-${PYSITELIB}/pylint/test/a.py
${PYSITELIB}/pylint/test/acceptance/test_stdlib.py
${PYSITELIB}/pylint/test/conftest.py
${PYSITELIB}/pylint/test/data/__init__.py
@@ -252,6 +251,9 @@
${PYSITELIB}/pylint/test/functional/assigning_non_slot.txt
${PYSITELIB}/pylint/test/functional/assignment_from_no_return.py
${PYSITELIB}/pylint/test/functional/assignment_from_no_return.txt
+${PYSITELIB}/pylint/test/functional/assignment_from_no_return_py3.py
+${PYSITELIB}/pylint/test/functional/assignment_from_no_return_py3.rc
+${PYSITELIB}/pylint/test/functional/assignment_from_no_return_py3.txt
${PYSITELIB}/pylint/test/functional/async_functions.py
${PYSITELIB}/pylint/test/functional/async_functions.rc
${PYSITELIB}/pylint/test/functional/async_functions.txt
@@ -336,6 +338,8 @@
${PYSITELIB}/pylint/test/functional/consider_using_set_comprehension.txt
${PYSITELIB}/pylint/test/functional/continue_in_finally.py
${PYSITELIB}/pylint/test/functional/continue_in_finally.txt
+${PYSITELIB}/pylint/test/functional/control_pragmas.py
+${PYSITELIB}/pylint/test/functional/control_pragmas.txt
${PYSITELIB}/pylint/test/functional/crash_missing_module_type.py
${PYSITELIB}/pylint/test/functional/crash_missing_module_type.txt
${PYSITELIB}/pylint/test/functional/ctor_arguments.py
@@ -388,12 +392,17 @@
${PYSITELIB}/pylint/test/functional/docstrings.txt
${PYSITELIB}/pylint/test/functional/duplicate_argument_name.py
${PYSITELIB}/pylint/test/functional/duplicate_argument_name.txt
+${PYSITELIB}/pylint/test/functional/duplicate_argument_name_py3.py
+${PYSITELIB}/pylint/test/functional/duplicate_argument_name_py3.rc
+${PYSITELIB}/pylint/test/functional/duplicate_argument_name_py3.txt
${PYSITELIB}/pylint/test/functional/duplicate_bases.py
${PYSITELIB}/pylint/test/functional/duplicate_bases.txt
${PYSITELIB}/pylint/test/functional/duplicate_dict_literal_key.py
${PYSITELIB}/pylint/test/functional/duplicate_dict_literal_key.txt
${PYSITELIB}/pylint/test/functional/duplicate_except.py
${PYSITELIB}/pylint/test/functional/duplicate_except.txt
+${PYSITELIB}/pylint/test/functional/duplicate_string_formatting_argument.py
+${PYSITELIB}/pylint/test/functional/duplicate_string_formatting_argument.txt
${PYSITELIB}/pylint/test/functional/eval_used.py
${PYSITELIB}/pylint/test/functional/eval_used.txt
${PYSITELIB}/pylint/test/functional/exception_is_binary_op.py
@@ -434,6 +443,8 @@
${PYSITELIB}/pylint/test/functional/genexpr_variable_scope.txt
${PYSITELIB}/pylint/test/functional/globals.py
${PYSITELIB}/pylint/test/functional/globals.txt
+${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence.py
+${PYSITELIB}/pylint/test/functional/implicit_str_concat_in_sequence.txt
${PYSITELIB}/pylint/test/functional/import_error.py
${PYSITELIB}/pylint/test/functional/import_error.rc
${PYSITELIB}/pylint/test/functional/import_error.txt
@@ -601,10 +612,6 @@
${PYSITELIB}/pylint/test/functional/names_in__all__.txt
${PYSITELIB}/pylint/test/functional/nested_blocks_issue1088.py
${PYSITELIB}/pylint/test/functional/nested_blocks_issue1088.txt
-${PYSITELIB}/pylint/test/functional/newstyle__slots__.py
-${PYSITELIB}/pylint/test/functional/newstyle__slots__.txt
-${PYSITELIB}/pylint/test/functional/newstyle_properties.py
-${PYSITELIB}/pylint/test/functional/newstyle_properties.txt
${PYSITELIB}/pylint/test/functional/no_classmethod_decorator.py
${PYSITELIB}/pylint/test/functional/no_classmethod_decorator.txt
${PYSITELIB}/pylint/test/functional/no_else_return.py
@@ -642,9 +649,6 @@
${PYSITELIB}/pylint/test/functional/not_in_loop.txt
${PYSITELIB}/pylint/test/functional/old_division_manually.py
${PYSITELIB}/pylint/test/functional/old_division_manually.rc
-${PYSITELIB}/pylint/test/functional/old_style_class_py27.py
-${PYSITELIB}/pylint/test/functional/old_style_class_py27.rc
-${PYSITELIB}/pylint/test/functional/old_style_class_py27.txt
${PYSITELIB}/pylint/test/functional/postponed_evaluation_activated.py
${PYSITELIB}/pylint/test/functional/postponed_evaluation_activated.rc
${PYSITELIB}/pylint/test/functional/postponed_evaluation_activated.txt
@@ -694,6 +698,8 @@
${PYSITELIB}/pylint/test/functional/self_cls_assignment.txt
${PYSITELIB}/pylint/test/functional/signature_differs.py
${PYSITELIB}/pylint/test/functional/signature_differs.txt
+${PYSITELIB}/pylint/test/functional/simplifiable_if_expression.py
+${PYSITELIB}/pylint/test/functional/simplifiable_if_expression.txt
${PYSITELIB}/pylint/test/functional/simplifiable_if_statement.py
${PYSITELIB}/pylint/test/functional/simplifiable_if_statement.txt
${PYSITELIB}/pylint/test/functional/simplify_chained_comparison.py
@@ -964,7 +970,6 @@
${PYSITELIB}/pylint/test/input/__init__.py
${PYSITELIB}/pylint/test/input/func_3k_removed_stuff_py_30.py
${PYSITELIB}/pylint/test/input/func_bad_cont_dictcomp_py27.py
-${PYSITELIB}/pylint/test/input/func_block_disable_msg.py
${PYSITELIB}/pylint/test/input/func_bug113231.py
${PYSITELIB}/pylint/test/input/func_disable_linebased.py
${PYSITELIB}/pylint/test/input/func_dotted_ancestor.py
@@ -1028,7 +1033,9 @@
${PYSITELIB}/pylint/test/input/func_w0613.py
${PYSITELIB}/pylint/test/input/func_w0623_py30.py
${PYSITELIB}/pylint/test/input/func_w0801.py
+${PYSITELIB}/pylint/test/input/hide_code_with_imports.py
${PYSITELIB}/pylint/test/input/ignore_except_pass_by_default.py
+${PYSITELIB}/pylint/test/input/multiline-import
${PYSITELIB}/pylint/test/input/noext
${PYSITELIB}/pylint/test/input/not__init__.py
${PYSITELIB}/pylint/test/input/similar1
@@ -1038,7 +1045,6 @@
${PYSITELIB}/pylint/test/messages/builtin_module.txt
${PYSITELIB}/pylint/test/messages/func_3k_removed_stuff_py_30.txt
${PYSITELIB}/pylint/test/messages/func_bad_cont_dictcomp_py27.txt
-${PYSITELIB}/pylint/test/messages/func_block_disable_msg.txt
${PYSITELIB}/pylint/test/messages/func_bug113231.txt
${PYSITELIB}/pylint/test/messages/func_disable_linebased.txt
${PYSITELIB}/pylint/test/messages/func_disable_linebased_py30.txt
@@ -1098,7 +1104,6 @@
${PYSITELIB}/pylint/test/regrtest_data/absimp/__init__.py
${PYSITELIB}/pylint/test/regrtest_data/absimp/string.py
${PYSITELIB}/pylint/test/regrtest_data/application_crash.py
-${PYSITELIB}/pylint/test/regrtest_data/awesome_module.py
${PYSITELIB}/pylint/test/regrtest_data/bad_package/__init__.py
${PYSITELIB}/pylint/test/regrtest_data/bad_package/wrong.py
${PYSITELIB}/pylint/test/regrtest_data/beyond_top/__init__.py
@@ -1112,6 +1117,8 @@
${PYSITELIB}/pylint/test/regrtest_data/dummy/dummy.py
${PYSITELIB}/pylint/test/regrtest_data/dummy_plugin.rc
${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
${PYSITELIB}/pylint/test/regrtest_data/import_assign.py
${PYSITELIB}/pylint/test/regrtest_data/import_package_subpackage_module.py
${PYSITELIB}/pylint/test/regrtest_data/import_something.py
@@ -1135,6 +1142,7 @@
${PYSITELIB}/pylint/test/regrtest_data/syntax_error.py
${PYSITELIB}/pylint/test/regrtest_data/test_pylintrc_comments.py
${PYSITELIB}/pylint/test/regrtest_data/try_finally_disable_msg_crash.py
+${PYSITELIB}/pylint/test/regrtest_data/wildcard.py
${PYSITELIB}/pylint/test/regrtest_data/wrong_import_position.py
${PYSITELIB}/pylint/test/test_func.py
${PYSITELIB}/pylint/test/test_functional.py
@@ -1168,7 +1176,7 @@
${PYSITELIB}/pylint/utils.py
${PYSITELIB}/pylint/utils.pyc
${PYSITELIB}/pylint/utils.pyo
-man/man1/epylint${PYVERSSUFFIX}.1
-man/man1/pylint${PYVERSSUFFIX}.1
-man/man1/pyreverse${PYVERSSUFFIX}.1
-man/man1/symilar${PYVERSSUFFIX}.1
+man/man1/epylint-${PYVERSSUFFIX}.1
+man/man1/pylint-${PYVERSSUFFIX}.1
+man/man1/pyreverse-${PYVERSSUFFIX}.1
+man/man1/symilar-${PYVERSSUFFIX}.1
diff -r 930c8b121f92 -r 6868b8efc2f9 devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo Mon Nov 26 09:00:52 2018 +0000
+++ b/devel/py-pylint/distinfo Mon Nov 26 09:09:34 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.19 2018/08/06 19:58:41 adam Exp $
+$NetBSD: distinfo,v 1.20 2018/11/26 09:09:34 adam Exp $
-SHA1 (pylint-2.1.1.tar.gz) = a3612d88b9f21a7134c12379a9243f73438897fd
-RMD160 (pylint-2.1.1.tar.gz) = 8caa95cd011b974fb0e450bc2f92ce6adbfa3736
-SHA512 (pylint-2.1.1.tar.gz) = 663b00269540981c432682c040bbb39897308ae29bc9e9ee9103dbe0b214eaa0d5780a8111af5dde17307eeb0a765fecacef245b8b372eea579b66733930a0d5
-Size (pylint-2.1.1.tar.gz) = 555770 bytes
+SHA1 (pylint-2.2.0.tar.gz) = 25af6f8a163576e77fdf92dc345759e662c1e3bf
+RMD160 (pylint-2.2.0.tar.gz) = 471a68c688f17e1f885eba129640483185fbafdc
+SHA512 (pylint-2.2.0.tar.gz) = c1df983b1410e150e9ec7d02eb061ef50828ce50d26a88aaac44815acac30a58d2f9d36627b4f67cd9c1f90feaed3476a427ddabb6938b12bbca1080c57da34e
+Size (pylint-2.2.0.tar.gz) = 754100 bytes
Home |
Main Index |
Thread Index |
Old Index