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.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66f305ae3308
branches:  trunk
changeset: 383519:66f305ae3308
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Aug 02 15:19:23 2018 +0000

description:
py-pylint: updated to 2.1.0

What's New in Pylint 2.1?

   * trailing-comma-tuple gets emitted for yield statements as well.

   * Get only the arguments of the scope function for redefined-argument-from-local

   * Add a check misplaced-format-function which is emitted if format function is used on
     non str object.

   * chain.from_iterable no longer emits dict-{}-not-iterating when dealing with dict values and keys

   * Demote the try-except-raise message from an error to a warning (E0705 -> W0706)

   * Correctly handle the new name of the Python implementation of the abc module.

    * Modules with __getattr__ are exempted by default from no-member

      There's no easy way to figure out if a module has a particular member when
      the said module uses __getattr__, which is a new addition to Python 3.7.
      Instead we assume the safe thing to do, in the same way we do for classes,
      and skip those modules from checking.

    * Fix a false positive invalid name message when method or attribute name is longer then 30 characters.

    * Include the type of the next branch in no-else-return

    * Fix inconsistent behaviour for bad-continuation on first line of file

     * Fix not being able to disable certain messages on the last line through
       the global disable option

    * Don't emit useless-return when we have a single statement that is the return itself

      We still want to be explicit when a function is supposed to return
      an optional value; even though pass could still work, it's not explicit
      enough and the function might look like it's missing an implementation.

   * Fix false-positive undefined-variable for self referential class name in lamdbas

    * Don't crash when pylint is unable to infer the value of an argument to next()

    * Don't emit not-an-iterable when dealing with async iterators.

      But do emit it when using the usual iteration protocol against
      async iterators.

   * Can specify a default docstring type for when the check cannot guess the type

diffstat:

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

diffs (65 lines):

diff -r ce4444693af3 -r 66f305ae3308 devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile  Thu Aug 02 15:13:34 2018 +0000
+++ b/devel/py-pylint/Makefile  Thu Aug 02 15:19:23 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2018/07/24 06:15:31 adam Exp $
+# $NetBSD: Makefile,v 1.29 2018/08/02 15:19:23 adam Exp $
 
-DISTNAME=      pylint-2.0.1
+DISTNAME=      pylint-2.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
diff -r ce4444693af3 -r 66f305ae3308 devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST     Thu Aug 02 15:13:34 2018 +0000
+++ b/devel/py-pylint/PLIST     Thu Aug 02 15:19:23 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2018/07/17 10:08:42 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2018/08/02 15:19:23 adam Exp $
 bin/epylint${PYVERSSUFFIX}
 bin/pylint${PYVERSSUFFIX}
 bin/pyreverse${PYVERSSUFFIX}
@@ -493,6 +493,9 @@
 ${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/iterable_context_py36.py
+${PYSITELIB}/pylint/test/functional/iterable_context_py36.rc
+${PYSITELIB}/pylint/test/functional/iterable_context_py36.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
@@ -545,6 +548,9 @@
 ${PYSITELIB}/pylint/test/functional/member_checks_opaque.py
 ${PYSITELIB}/pylint/test/functional/member_checks_opaque.rc
 ${PYSITELIB}/pylint/test/functional/member_checks_opaque.txt
+${PYSITELIB}/pylint/test/functional/member_checks_py37.py
+${PYSITELIB}/pylint/test/functional/member_checks_py37.rc
+${PYSITELIB}/pylint/test/functional/member_checks_py37.txt
 ${PYSITELIB}/pylint/test/functional/membership_protocol.py
 ${PYSITELIB}/pylint/test/functional/membership_protocol.txt
 ${PYSITELIB}/pylint/test/functional/membership_protocol_py2.py
@@ -561,6 +567,8 @@
 ${PYSITELIB}/pylint/test/functional/misplaced_bare_raise.txt
 ${PYSITELIB}/pylint/test/functional/misplaced_comparison_constant.py
 ${PYSITELIB}/pylint/test/functional/misplaced_comparison_constant.txt
+${PYSITELIB}/pylint/test/functional/misplaced_format_function.py
+${PYSITELIB}/pylint/test/functional/misplaced_format_function.txt
 ${PYSITELIB}/pylint/test/functional/misplaced_future.py
 ${PYSITELIB}/pylint/test/functional/misplaced_future.txt
 ${PYSITELIB}/pylint/test/functional/missing_docstring.py
diff -r ce4444693af3 -r 66f305ae3308 devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Thu Aug 02 15:13:34 2018 +0000
+++ b/devel/py-pylint/distinfo  Thu Aug 02 15:19:23 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.17 2018/07/24 06:15:31 adam Exp $
+$NetBSD: distinfo,v 1.18 2018/08/02 15:19:23 adam Exp $
 
-SHA1 (pylint-2.0.1.tar.gz) = 80e43e5594d1e49f98bfa019ec509789df11bbed
-RMD160 (pylint-2.0.1.tar.gz) = a4407c37115c73e1e240dc43d59e3e4f7566023f
-SHA512 (pylint-2.0.1.tar.gz) = a4d634cee552e2142ea41854dc2278a2303844409e155785461024c8678b4a3ed685bc1ebea681aa0e826eeb46bd6f2045ffcccc45b4d4b675a572fb960d96e4
-Size (pylint-2.0.1.tar.gz) = 550762 bytes
+SHA1 (pylint-2.1.0.tar.gz) = 71181d818dcfaf85bd33d3a56cc708e4927da062
+RMD160 (pylint-2.1.0.tar.gz) = b703db38bcd6f82990d5fa4e4859ce44f4facdd8
+SHA512 (pylint-2.1.0.tar.gz) = ec2ca696c3665c7ba6be2a3be98bbf7ded53849969665bb4f1e87ecf2c03092521a4d872350380628fc4d8c6f6e6d0fcc49e2001ce3039d2737a2c3e01637933
+Size (pylint-2.1.0.tar.gz) = 555623 bytes



Home | Main Index | Thread Index | Old Index