[meta-python] python3-pylint: upgrade 2.13.9 -> 2.14.1

Message ID 1655429612-19310-2-git-send-email-xuhuan.fnst@fujitsu.com
State New
Headers show
Series [meta-python] python3-pylint: upgrade 2.13.9 -> 2.14.1 | expand

Commit Message

XU Huan June 17, 2022, 1:33 a.m. UTC
From: Xu Huan <xuhuan.fnst@fujitsu.com>

Changelog:
=========
Avoid reporting unnecessary-dict-index-lookup or unnecessary-list-index-lookup
when the index lookup is part of a destructuring assignment.

Fixed parsing of unrelated options in tox.ini.

Fixed a crash when linting __new__() methods that return a call expression.

Don't crash if we can't find the user's home directory.

Fixed false positives for unused-import when aliasing typing e.g. as t
and guarding imports under t.TYPE_CHECKING.

Fixed a false positive regression in 2.13 for used-before-assignment where it is safe to rely
on a name defined only in an except block because the else block returned.

Fixed the use of abbreviations for some special options on the command line.

Fix a crash in the optional pylint.extensions.private_import extension.


bad-option-value (E0012) is now a warning unknown-option-value (W0012). Deleted messages that do not exist
anymore in pylint now raise useless-option-value (R0022) instead of bad-option-value. This allows to
distinguish between genuine typos and configuration that could be cleaned up. Existing message disables for
bad-option-value will still work on both new messages.

Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
---
 .../{python3-pylint_2.13.9.bb => python3-pylint_2.14.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pylint_2.13.9.bb => python3-pylint_2.14.1.bb} (86%)

Comments

akuster808 June 20, 2022, 3:54 a.m. UTC | #1
Xu,

On 6/16/22 18:33, xuhuan.fnst@fujitsu.com wrote:
> From: Xu Huan <xuhuan.fnst@fujitsu.com>
>
> Changelog:
> =========
> Avoid reporting unnecessary-dict-index-lookup or unnecessary-list-index-lookup
> when the index lookup is part of a destructuring assignment.
>
> Fixed parsing of unrelated options in tox.ini.
>
> Fixed a crash when linting __new__() methods that return a call expression.
>
> Don't crash if we can't find the user's home directory.
>
> Fixed false positives for unused-import when aliasing typing e.g. as t
> and guarding imports under t.TYPE_CHECKING.
>
> Fixed a false positive regression in 2.13 for used-before-assignment where it is safe to rely
> on a name defined only in an except block because the else block returned.
>
> Fixed the use of abbreviations for some special options on the command line.
>
> Fix a crash in the optional pylint.extensions.private_import extension.

Thanks for the additional information. This helps Stable Branch 
Maintainers in deciding if a change is good to back-port. Sames me time.

Many thanks,
Armin
>
>
> bad-option-value (E0012) is now a warning unknown-option-value (W0012). Deleted messages that do not exist
> anymore in pylint now raise useless-option-value (R0022) instead of bad-option-value. This allows to
> distinguish between genuine typos and configuration that could be cleaned up. Existing message disables for
> bad-option-value will still work on both new messages.
>
> Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
> ---
>   .../{python3-pylint_2.13.9.bb => python3-pylint_2.14.1.bb}      | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>   rename meta-python/recipes-devtools/python/{python3-pylint_2.13.9.bb => python3-pylint_2.14.1.bb} (86%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb b/meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
> similarity index 86%
> rename from meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb
> rename to meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
> index 1946a8923..d4d2d2c8a 100644
> --- a/meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb
> +++ b/meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
> @@ -3,7 +3,7 @@ HOMEPAGE= "http://www.pylint.org/"
>   LICENSE = "GPL-2.0-only"
>   LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
>   
> -SRC_URI[sha256sum] = "095567c96e19e6f57b5b907e67d265ff535e588fe26b12b5ebe1fc5645b2c731"
> +SRC_URI[sha256sum] = "549261e0762c3466cc001024c4419c08252cb8c8d40f5c2c6966fea690e7fe2a"
>   
>   inherit pypi setuptools3
>   
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#97529): https://lists.openembedded.org/g/openembedded-devel/message/97529
> Mute This Topic: https://lists.openembedded.org/mt/91813528/3616698
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [akuster808@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb b/meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb
rename to meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
index 1946a8923..d4d2d2c8a 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.13.9.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.14.1.bb
@@ -3,7 +3,7 @@  HOMEPAGE= "http://www.pylint.org/"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRC_URI[sha256sum] = "095567c96e19e6f57b5b907e67d265ff535e588fe26b12b5ebe1fc5645b2c731"
+SRC_URI[sha256sum] = "549261e0762c3466cc001024c4419c08252cb8c8d40f5c2c6966fea690e7fe2a"
 
 inherit pypi setuptools3