14
0
forked from pool/python-pylint

- update to 2.17.4:

* Fix a false positive for ``bad-dunder-name`` when there is a
    user-defined ``__index__`` method.
  * ``pyreverse``: added escaping of vertical bar character in
    annotation labels
  * produced by DOT printer to ensure it is not treated as field
    separator of record-based nodes.
  * Fixed a crash when generating a configuration file:
  * ``tomlkit.exceptions.TOMLKitError: Can't add a table to a
    dotted key`` caused by tomlkit ``v0.11.8``.

- update to 2.17.3:
  * Fix `unused-argument` false positive when `__new__` does not
    use all the arguments of `__init__`.
  * Fix ``unused-import`` false positive for usage of
    ``six.with_metaclass``.
  * `logging-not-lazy` is not longer emitted for explicitly
    concatenated string arguments.
  * Fix false positive for isinstance-second-argument-not-valid-
    type when union types contains None.
  * Fixed `unused-import` so that it observes the `dummy-
    variables-rgx` option.
  * `Union` typed variables without assignment are no longer
    treated as `TypeAlias`.
  * Fix false positive for ``positional-only-arguments-expected``
    when a function contains both a positional-only parameter
    that has a default value, and ``**kwargs``.
  * Fix false positive for ``keyword-arg-before-vararg`` when a
    positional-only parameter with a default value precedes ``*args``.
  * Improve output of ``consider-using-generator`` message for

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=146
This commit is contained in:
2023-05-08 15:45:01 +00:00
committed by Git OBS Bridge
parent 7c9fb5774c
commit 17c61431f7
4 changed files with 45 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
%{?sle15_python_module_pythons}
%bcond_without tests
Name: python-pylint
Version: 2.17.2
Version: 2.17.4
Release: 0
Summary: Syntax and style checker for Python code
License: GPL-2.0-or-later
@@ -36,7 +36,7 @@ BuildRequires: python-rpm-macros
Requires: python-dill >= 0.3.6
Requires: python-platformdirs >= 2.2
Requires: python-tomlkit >= 0.10.1
Requires: (python-astroid >= 2.15.2 with python-astroid < 2.17.0~dev0)
Requires: (python-astroid >= 2.15.4 with python-astroid < 2.17.0~dev0)
Requires: (python-isort >= 4.2.5 with python-isort < 6)
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
%if 0%{?python_version_nodots} < 311
@@ -47,7 +47,7 @@ Requires: python-typing-extensions >= 3.10
%endif
%if %{with tests}
# SECTION pylint deps
BuildRequires: %{python_module astroid >= 2.15.2 with %python-astroid < 2.17.0~dev0}
BuildRequires: %{python_module astroid >= 2.15.4 with %python-astroid < 2.17.0~dev0}
BuildRequires: %{python_module dill >= 0.3.6}
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6}
BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8}
@@ -106,7 +106,7 @@ done
%if %{with tests}
%check
export LC_ALL="en_US.UTF-8"
%pytest --benchmark-disable -k "not test_linter_with_unpickleable_plugins_is_pickleable"
%pytest %{?jobs:-n %jobs} --benchmark-disable -k "not test_linter_with_unpickleable_plugins_is_pickleable"
%endif
%post