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 1.8.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/551a4a969daa
branches:  trunk
changeset: 372794:551a4a969daa
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Dec 17 16:32:57 2017 +0000

description:
py-pylint: updated to 1.8.1

What's New in Pylint 1.8.1
* Wrong version number in __pkginfo__.

What's New in Pylint 1.8
* Respect disable=... in config file when running with --py3k.
* New warning shallow-copy-environ added
  Shallow copy of os.environ doesn't work as people may expect. os.environ
  is not a dict object but rather a proxy object, so any changes made
  on copy may have unexpected effects on os.environ
  Instead of copy.copy(os.environ) method os.environ.copy() should be
  used.
* Do not display no-absolute-import warning multiple times per file.
* trailing-comma-tuple refactor check now extends to assignment with
   more than one element (such as lists)
* Fixing u'' string in superfluous-parens message
* abstract-class-instantiated is now emitted for all inference paths.
* Add set of predefined naming style to ease configuration of checking
  naming conventions.
* Added a new check, keyword-arg-before-vararg
  This is emitted for function definitions
  in which keyword arguments are placed before variable
  positional arguments (*args).
  This may lead to args list getting modified if keyword argument's value
  is not provided in the function call assuming it will take default value
  provided in the definition.
* The invalid-name check contains the name of the template that caused the failure
* Using the -j flag won't start more child linters than needed.
* Fix a false positive with bad-python3-import on relative imports
* Added a new Python 3 check, non-ascii-bytes-literals
* Added a couple of new Python 3 checks for accessing dict methods in non-iterable context
* Protocol checks (not-a-mapping, not-an-iterable and co.) aren't emitted on classes with dynamic getattr
* Added a new warning, 'bad-thread-instantiation'
  This message is emitted when the threading.Thread class does not
  receive the target argument, but receives just one argument, which
  is by default the group parameter.
* In non-quiet mode, absolute path of used config file is logged to
  standard error.
* Raise meaningful exception for invalid reporter class being selected
  When unknown reporter class will be selected as Pylint reporter,
  meaningful error message would be raised instead of bare ImportError
  or AttribueError related to module or reporter class being not found.
* Added a new Python 3 check for accessing removed functions from itertools
  like izip or ifilterfalse
* Added a new Python 3 check for accessing removed fields from the types
  module like UnicodeType or XRangeType
* Added a new Python 3 check for declaring a method next that would have
  been treated as an iterator in Python 2 but a normal function in Python 3.
* Added a new key-value pair in json output. The key is message-id
  and the value is the message id.
* Added a new Python 3.0 check for raising a StopIteration inside a generator.
  The check about raising a StopIteration inside a generator is also valid if the exception
  raised inherit from StopIteration.
* Added a new warning, raising-format-tuple, to detect multi-argument
  exception construction instead of message string formatting.
* Added a new check for method of logging module that concatenate string via + operator
* Added parameter for limiting number of suggestions in spellchecking checkers
* Fix a corner-case in consider-using-ternary checker.
  When object A used in  X and A or B was falsy in boolean context,
  Pylint incorrectly emitted non-equivalent ternary-based suggestion.
  After a change message is correctly not emitted for this case.
* Added suggestion-mode configuration flag. When flag is enabled, informational
  message is emitted instead of cryptic error message for attributes accessed on
  c-extensions.
* Fix a false positive useless-super-delegation message when
  parameters default values are different from those used in the base class.
* Disabling 'wrong-import-order', 'wrong-import-position', or
  'ungrouped-imports' for a single line now prevents that line from
  triggering violations on subsequent lines.
* Added a new Python check for inconsistent return statements inside method or function.
* Fix superfluous-parens false positive related to handling logical statements
  involving in operator.
* function-redefined message is no longer emitted for functions and
  methods which names matches dummy variable name regular expression.
* Fix missing-param-doc and missing-type-doc false positives when
  mixing Args and Keyword Args in Google docstring.
* Fix missing-docstring false negatives when modules, classes, or methods
 consist of compound statements that exceed the docstring-min-length
* Fix useless-else-on-loop false positives when break statements are
  deeply nested inside loop.
* Fix no wrong-import-order message emitted on ordering of first and third party
  libraries. With this fix, pylint distinguishes third and first party
  modules when checking import order.
* Fix pylint disable=fixme directives ignored for comments following the
  last statement in a file.
* Fix line-too-long message deactivated by wrong disable directive.
  The directive disable=fixme doesn't deactivate anymore the emission
  of line-too-long message for long commented lines.
* If the rcfile specified on the command line doesn't exist, then an
  IOError exception is raised.

diffstat:

 devel/py-pylint/Makefile |   8 ++++----
 devel/py-pylint/PLIST    |  37 ++++++++++++++++++++++++++++++++++++-
 devel/py-pylint/distinfo |  10 +++++-----
 3 files changed, 45 insertions(+), 10 deletions(-)

diffs (196 lines):

diff -r 3f4aacf4e23b -r 551a4a969daa devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile  Sun Dec 17 16:20:30 2017 +0000
+++ b/devel/py-pylint/Makefile  Sun Dec 17 16:32:57 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2017/12/12 08:38:18 adam Exp $
+# $NetBSD: Makefile,v 1.19 2017/12/17 16:32:57 adam Exp $
 
-DISTNAME=      pylint-1.7.5
+DISTNAME=      pylint-1.8.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -31,13 +31,13 @@
 
 post-install:
 .for file in epylint pylint pyreverse symilar
-       ${MV} ${DESTDIR}${PREFIX}/bin/${file} ${DESTDIR}${PREFIX}/bin/${file}${PYVERSSUFFIX}
+       ${MV} ${DESTDIR}${PREFIX}/bin/${file} ${DESTDIR}${PREFIX}/bin/${file}${PYVERSSUFFIX} || ${TRUE}
        ${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
                ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}${PYVERSSUFFIX}.1
 .endfor
 
 do-test:
-       cd ${WRKSRC}/pylint/test && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest discover -p "unittest*.py"
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
diff -r 3f4aacf4e23b -r 551a4a969daa devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST     Sun Dec 17 16:20:30 2017 +0000
+++ b/devel/py-pylint/PLIST     Sun Dec 17 16:32:57 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2017/12/12 08:38:18 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2017/12/17 16:32:57 adam Exp $
 bin/epylint${PYVERSSUFFIX}
 bin/pylint${PYVERSSUFFIX}
 bin/pyreverse${PYVERSSUFFIX}
@@ -178,6 +178,7 @@
 ${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
 ${PYSITELIB}/pylint/test/data/ascript
@@ -278,6 +279,8 @@
 ${PYSITELIB}/pylint/test/functional/bad_reversed_sequence.txt
 ${PYSITELIB}/pylint/test/functional/bad_staticmethod_argument.py
 ${PYSITELIB}/pylint/test/functional/bad_staticmethod_argument.txt
+${PYSITELIB}/pylint/test/functional/bad_thread_instantiation.py
+${PYSITELIB}/pylint/test/functional/bad_thread_instantiation.txt
 ${PYSITELIB}/pylint/test/functional/bad_whitespace.py
 ${PYSITELIB}/pylint/test/functional/bad_whitespace.txt
 ${PYSITELIB}/pylint/test/functional/bare_except.py
@@ -357,6 +360,11 @@
 ${PYSITELIB}/pylint/test/functional/deprecated_module_uninstalled.txt
 ${PYSITELIB}/pylint/test/functional/disable_msg_github_issue_1389.py
 ${PYSITELIB}/pylint/test/functional/disable_msg_github_issue_1389.rc
+${PYSITELIB}/pylint/test/functional/disable_ungrouped_imports.py
+${PYSITELIB}/pylint/test/functional/disable_ungrouped_imports.txt
+${PYSITELIB}/pylint/test/functional/disable_wrong_import_order.py
+${PYSITELIB}/pylint/test/functional/disable_wrong_import_order.txt
+${PYSITELIB}/pylint/test/functional/disable_wrong_import_position.py
 ${PYSITELIB}/pylint/test/functional/docstrings.py
 ${PYSITELIB}/pylint/test/functional/docstrings.txt
 ${PYSITELIB}/pylint/test/functional/duplicate_argument_name.py
@@ -390,6 +398,8 @@
 ${PYSITELIB}/pylint/test/functional/fixme_bad_formatting_1139.py
 ${PYSITELIB}/pylint/test/functional/fixme_bad_formatting_1139.rc
 ${PYSITELIB}/pylint/test/functional/fixme_bad_formatting_1139.txt
+${PYSITELIB}/pylint/test/functional/formatted_string_literal_with_if_py36.py
+${PYSITELIB}/pylint/test/functional/formatted_string_literal_with_if_py36.rc
 ${PYSITELIB}/pylint/test/functional/formatting.txt
 ${PYSITELIB}/pylint/test/functional/function_redefined.py
 ${PYSITELIB}/pylint/test/functional/function_redefined.txt
@@ -406,9 +416,12 @@
 ${PYSITELIB}/pylint/test/functional/globals.py
 ${PYSITELIB}/pylint/test/functional/globals.txt
 ${PYSITELIB}/pylint/test/functional/import_error.py
+${PYSITELIB}/pylint/test/functional/import_error.rc
 ${PYSITELIB}/pylint/test/functional/import_error.txt
 ${PYSITELIB}/pylint/test/functional/inconsistent_mro.py
 ${PYSITELIB}/pylint/test/functional/inconsistent_mro.txt
+${PYSITELIB}/pylint/test/functional/inconsistent_returns.py
+${PYSITELIB}/pylint/test/functional/inconsistent_returns.txt
 ${PYSITELIB}/pylint/test/functional/indexing_exception.py
 ${PYSITELIB}/pylint/test/functional/indexing_exception.rc
 ${PYSITELIB}/pylint/test/functional/indexing_exception.txt
@@ -425,6 +438,9 @@
 ${PLIST.py2x}${PYSITELIB}/pylint/test/functional/invalid_encoded_data.py
 ${PLIST.py2x}${PYSITELIB}/pylint/test/functional/invalid_encoded_data.rc
 ${PLIST.py2x}${PYSITELIB}/pylint/test/functional/invalid_encoded_data.txt
+${PYSITELIB}/pylint/test/functional/invalid_encoding_py27.py
+${PYSITELIB}/pylint/test/functional/invalid_encoding_py27.rc
+${PYSITELIB}/pylint/test/functional/invalid_encoding_py27.txt
 ${PYSITELIB}/pylint/test/functional/invalid_exceptions_caught.py
 ${PYSITELIB}/pylint/test/functional/invalid_exceptions_caught.txt
 ${PYSITELIB}/pylint/test/functional/invalid_exceptions_raised.py
@@ -455,6 +471,8 @@
 ${PYSITELIB}/pylint/test/functional/iterable_context_py3.py
 ${PYSITELIB}/pylint/test/functional/iterable_context_py3.rc
 ${PYSITELIB}/pylint/test/functional/iterable_context_py3.txt
+${PYSITELIB}/pylint/test/functional/keyword_arg_before_vararg.py
+${PYSITELIB}/pylint/test/functional/keyword_arg_before_vararg.txt
 ${PYSITELIB}/pylint/test/functional/len_checks.py
 ${PYSITELIB}/pylint/test/functional/len_checks.txt
 ${PYSITELIB}/pylint/test/functional/line_endings.py
@@ -524,6 +542,12 @@
 ${PYSITELIB}/pylint/test/functional/monkeypatch_method.txt
 ${PYSITELIB}/pylint/test/functional/multiple_imports.py
 ${PYSITELIB}/pylint/test/functional/multiple_imports.txt
+${PYSITELIB}/pylint/test/functional/namePresetCamelCase.py
+${PYSITELIB}/pylint/test/functional/namePresetCamelCase.rc
+${PYSITELIB}/pylint/test/functional/namePresetCamelCase.txt
+${PYSITELIB}/pylint/test/functional/name_preset_snake_case.py
+${PYSITELIB}/pylint/test/functional/name_preset_snake_case.rc
+${PYSITELIB}/pylint/test/functional/name_preset_snake_case.txt
 ${PYSITELIB}/pylint/test/functional/name_styles.py
 ${PYSITELIB}/pylint/test/functional/name_styles.rc
 ${PYSITELIB}/pylint/test/functional/name_styles.txt
@@ -583,6 +607,8 @@
 ${PYSITELIB}/pylint/test/functional/protected_access_access_different_scopes.py
 ${PYSITELIB}/pylint/test/functional/protected_access_access_different_scopes.rc
 ${PYSITELIB}/pylint/test/functional/protected_access_access_different_scopes.txt
+${PYSITELIB}/pylint/test/functional/raising_format_tuple.py
+${PYSITELIB}/pylint/test/functional/raising_format_tuple.txt
 ${PYSITELIB}/pylint/test/functional/raising_non_exception_py3.py
 ${PYSITELIB}/pylint/test/functional/raising_non_exception_py3.rc
 ${PYSITELIB}/pylint/test/functional/raising_non_exception_py3.txt
@@ -637,6 +663,9 @@
 ${PYSITELIB}/pylint/test/functional/star_needs_assignment_target_py35.txt
 ${PYSITELIB}/pylint/test/functional/statement_without_effect.py
 ${PYSITELIB}/pylint/test/functional/statement_without_effect.txt
+${PYSITELIB}/pylint/test/functional/stop_iteration_inside_generator.py
+${PYSITELIB}/pylint/test/functional/stop_iteration_inside_generator.rc
+${PYSITELIB}/pylint/test/functional/stop_iteration_inside_generator.txt
 ${PYSITELIB}/pylint/test/functional/string_formatting.py
 ${PYSITELIB}/pylint/test/functional/string_formatting.txt
 ${PYSITELIB}/pylint/test/functional/string_formatting_disable.py
@@ -709,6 +738,7 @@
 ${PYSITELIB}/pylint/test/functional/too_many_statements.py
 ${PYSITELIB}/pylint/test/functional/too_many_statements.txt
 ${PYSITELIB}/pylint/test/functional/trailing_comma_tuple.py
+${PYSITELIB}/pylint/test/functional/trailing_comma_tuple.rc
 ${PYSITELIB}/pylint/test/functional/trailing_comma_tuple.txt
 ${PYSITELIB}/pylint/test/functional/trailing_newlines.py
 ${PYSITELIB}/pylint/test/functional/trailing_newlines.txt
@@ -913,6 +943,7 @@
 ${PYSITELIB}/pylint/test/input/func_w0332_py_30.py
 ${PYSITELIB}/pylint/test/input/func_w0401.py
 ${PYSITELIB}/pylint/test/input/func_w0401_disabled.py
+${PYSITELIB}/pylint/test/input/func_w0401_disabled_in_func.py
 ${PYSITELIB}/pylint/test/input/func_w0401_package/__init__.py
 ${PYSITELIB}/pylint/test/input/func_w0401_package/all_the_things.py
 ${PYSITELIB}/pylint/test/input/func_w0401_package/thing1.py
@@ -927,6 +958,7 @@
 ${PYSITELIB}/pylint/test/input/func_w0801.py
 ${PYSITELIB}/pylint/test/input/ignore_except_pass_by_default.py
 ${PYSITELIB}/pylint/test/input/noext
+${PYSITELIB}/pylint/test/input/not__init__.py
 ${PYSITELIB}/pylint/test/input/similar1
 ${PYSITELIB}/pylint/test/input/similar2
 ${PYSITELIB}/pylint/test/input/w0401_cycle.py
@@ -976,6 +1008,7 @@
 ${PYSITELIB}/pylint/test/messages/func_w0332_py_30.txt
 ${PYSITELIB}/pylint/test/messages/func_w0401.txt
 ${PYSITELIB}/pylint/test/messages/func_w0401_disabled.txt
+${PYSITELIB}/pylint/test/messages/func_w0401_disabled_in_func.txt
 ${PYSITELIB}/pylint/test/messages/func_w0401_package.txt
 ${PYSITELIB}/pylint/test/messages/func_w0404.txt
 ${PYSITELIB}/pylint/test/messages/func_w0405.txt
@@ -1022,7 +1055,9 @@
 ${PYSITELIB}/pylint/test/regrtest_data/package_all/__init__.py
 ${PYSITELIB}/pylint/test/regrtest_data/package_all/notmissing.py
 ${PYSITELIB}/pylint/test/regrtest_data/precedence_test.py
+${PYSITELIB}/pylint/test/regrtest_data/py3k-disabled.rc
 ${PYSITELIB}/pylint/test/regrtest_data/py3k_error_flag.py
+${PYSITELIB}/pylint/test/regrtest_data/py3k_errors_and_warnings.py
 ${PYSITELIB}/pylint/test/regrtest_data/special_attr_scope_lookup_crash.py
 ${PYSITELIB}/pylint/test/regrtest_data/syntax_error.py
 ${PYSITELIB}/pylint/test/regrtest_data/test_pylintrc_comments.py
diff -r 3f4aacf4e23b -r 551a4a969daa devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Sun Dec 17 16:20:30 2017 +0000
+++ b/devel/py-pylint/distinfo  Sun Dec 17 16:32:57 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2017/12/12 08:38:18 adam Exp $
+$NetBSD: distinfo,v 1.9 2017/12/17 16:32:57 adam Exp $
 
-SHA1 (pylint-1.7.5.tar.gz) = 78baab1e0253372e72a8053e89fba7dbe5e04e91
-RMD160 (pylint-1.7.5.tar.gz) = 114c09a0bbaa24e7411336306ee1d059675b4ca3
-SHA512 (pylint-1.7.5.tar.gz) = 9f28cc4f88b26d2299ab3ea015935fba8c96f700c7898ad8fbdecfa0902f10a4ca54ad346b18452f8a589f8b63494bc12487dab36d168f336012b259bfa6f3f8
-Size (pylint-1.7.5.tar.gz) = 486892 bytes
+SHA1 (pylint-1.8.1.tar.gz) = 3ae272e5e78041a65cbc8cd812334887cc622f95
+RMD160 (pylint-1.8.1.tar.gz) = b54be8a8027a536a298ed1956803e84a5b8d9e3a
+SHA512 (pylint-1.8.1.tar.gz) = 54d5480373254329ff7304a9ea7168f6e16734b12b3d5a4f94b76c5e6a05c2a63606ad28488ce628474da98588397fa3d48e5aa79f22115a1e75f5a71a4755de
+Size (pylint-1.8.1.tar.gz) = 528240 bytes



Home | Main Index | Thread Index | Old Index