14
0
forked from pool/python-pylint

- Update to 3.3.6:

* Fix a false positive for used-before-assignment when an inner function's
    return type * annotation is a class defined at module scope.
  * Fix false positives for use-implicit-booleaness-not-comparison,
    use-implicit-booleaness-not-comparison-to-string and
    use-implicit-booleaness-not-comparison-to-zero when chained comparisons
    are checked.
  * Fix a false positive for invalid-getnewargs-ex-returned when the tuple or
    dict has been assigned to a name.
  * Remove getopt and optparse from the list of deprecated modules.
  * Fixed conditional import x.y causing false positive
    possibly-used-before-assignment.
  * Fix a crash when something besides a class is found in an except handler.
  * Fixed raising invalid-name when using camelCase for private methods with
    two leading underscores.
  * Fixes "skipped files" count calculation; the previous method was
    displaying an arbitrary number.
  * Fixes a crash that occurred when pylint was run in a container on a host
    with cgroupsv2 and restrictions on CPU usage.
  * Relaxed the requirements for isort so pylint can benefit from isort 6.
  * Fix false positives for undefined-variable for classes using Python 3.12
    generic type syntax.
  * Fix a false positive for use-implicit-booleaness-not-len. No lint should
    be emitted for generators (len is not defined for generators).
  * Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1.
  * Fix a false positive for potential-index-error when an indexed iterable
    contains a starred element that evaluates to more than one item.
  * Fixes the issue with --source-root option not working when the source
    files are in a subdirectory of the source root (e.g. when using a /src
    layout).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=169
This commit is contained in:
2025-04-08 03:29:42 +00:00
committed by Git OBS Bridge
parent cec1b07cde
commit 75c13e2f7b
4 changed files with 42 additions and 9 deletions

BIN
pylint-3.3.1-gh.tar.gz (Stored with Git LFS)

Binary file not shown.

3
pylint-3.3.6-gh.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5a0f3da7beb89ef03fa4353e52fbf742daf2dea3dc57ef401957c2201dfeea5
size 1456483

View File

@@ -1,4 +1,37 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 8 03:29:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.3.6:
* Fix a false positive for used-before-assignment when an inner function's
return type * annotation is a class defined at module scope.
* Fix false positives for use-implicit-booleaness-not-comparison,
use-implicit-booleaness-not-comparison-to-string and
use-implicit-booleaness-not-comparison-to-zero when chained comparisons
are checked.
* Fix a false positive for invalid-getnewargs-ex-returned when the tuple or
dict has been assigned to a name.
* Remove getopt and optparse from the list of deprecated modules.
* Fixed conditional import x.y causing false positive
possibly-used-before-assignment.
* Fix a crash when something besides a class is found in an except handler.
* Fixed raising invalid-name when using camelCase for private methods with
two leading underscores.
* Fixes "skipped files" count calculation; the previous method was
displaying an arbitrary number.
* Fixes a crash that occurred when pylint was run in a container on a host
with cgroupsv2 and restrictions on CPU usage.
* Relaxed the requirements for isort so pylint can benefit from isort 6.
* Fix false positives for undefined-variable for classes using Python 3.12
generic type syntax.
* Fix a false positive for use-implicit-booleaness-not-len. No lint should
be emitted for generators (len is not defined for generators).
* Fix Unable to import 'collections.abc' (import-error) on Python 3.13.1.
* Fix a false positive for potential-index-error when an indexed iterable
contains a starred element that evaluates to more than one item.
* Fixes the issue with --source-root option not working when the source
files are in a subdirectory of the source root (e.g. when using a /src
layout).
-------------------------------------------------------------------
Thu Sep 26 09:24:16 UTC 2024 - Ben Greiner <code@bnavigator.de> Thu Sep 26 09:24:16 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Revert restriction to python3. - Revert restriction to python3.

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pylint # spec file for package python-pylint
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%bcond_without tests %bcond_without tests
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pylint Name: python-pylint
Version: 3.3.1 Version: 3.3.6
Release: 0 Release: 0
Summary: Syntax and style checker for Python code Summary: Syntax and style checker for Python code
License: GPL-2.0-or-later License: GPL-2.0-or-later
@@ -35,8 +35,8 @@ BuildRequires: python-rpm-macros
Requires: python-dill >= 0.3.7 Requires: python-dill >= 0.3.7
Requires: python-platformdirs >= 2.2 Requires: python-platformdirs >= 2.2
Requires: python-tomlkit >= 0.10.1 Requires: python-tomlkit >= 0.10.1
Requires: (python-astroid >= 3.3.4 with python-astroid < 3.4.0~dev0) Requires: (python-astroid >= 3.3.8 with python-astroid < 4.0.0~dev0)
Requires: (python-isort >= 4.2.5 with python-isort < 6) Requires: (python-isort >= 4.2.5 with python-isort < 7)
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8) Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
%if 0%{?python_version_nodots} < 311 %if 0%{?python_version_nodots} < 311
Requires: python-tomli >= 1.1.0 Requires: python-tomli >= 1.1.0
@@ -46,10 +46,10 @@ Requires: python-typing-extensions >= 3.10
%endif %endif
%if %{with tests} %if %{with tests}
# SECTION pylint deps # SECTION pylint deps
BuildRequires: %{python_module astroid >= 3.3.4 with %python-astroid < 3.4.0~dev0} BuildRequires: %{python_module astroid >= 3.3.8 with %python-astroid < 4.0.0~dev0}
BuildRequires: %{python_module dill >= 0.3.7} BuildRequires: %{python_module dill >= 0.3.7}
BuildRequires: %{python_module enchant} BuildRequires: %{python_module enchant}
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6} BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 7}
BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8} BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8}
BuildRequires: %{python_module platformdirs >= 2.2} BuildRequires: %{python_module platformdirs >= 2.2}
BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11} BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11}