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:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,7 +19,7 @@
|
||||
%bcond_without tests
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pylint
|
||||
Version: 3.3.1
|
||||
Version: 3.3.6
|
||||
Release: 0
|
||||
Summary: Syntax and style checker for Python code
|
||||
License: GPL-2.0-or-later
|
||||
@@ -35,8 +35,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-dill >= 0.3.7
|
||||
Requires: python-platformdirs >= 2.2
|
||||
Requires: python-tomlkit >= 0.10.1
|
||||
Requires: (python-astroid >= 3.3.4 with python-astroid < 3.4.0~dev0)
|
||||
Requires: (python-isort >= 4.2.5 with python-isort < 6)
|
||||
Requires: (python-astroid >= 3.3.8 with python-astroid < 4.0.0~dev0)
|
||||
Requires: (python-isort >= 4.2.5 with python-isort < 7)
|
||||
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
|
||||
%if 0%{?python_version_nodots} < 311
|
||||
Requires: python-tomli >= 1.1.0
|
||||
@@ -46,10 +46,10 @@ Requires: python-typing-extensions >= 3.10
|
||||
%endif
|
||||
%if %{with tests}
|
||||
# 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 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 platformdirs >= 2.2}
|
||||
BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11}
|
||||
|
Reference in New Issue
Block a user