14
0
forked from pool/python-pylint

- update to 3.0.2:

* Fix ``used-before-assignment`` false positive for generic
    type syntax (PEP 695, Python 3.12).
  * Escape special symbols and newlines in messages.
  * Fixes suggestion for ``nested-min-max`` for expressions with
    additive operators, list and dict comprehensions.
  * Fixes ignoring conditional imports with ``ignore-imports=y``.
  * Emit ``inconsistent-quotes`` for f-strings with 3.12
    interpreter only if targeting pre-3.12 versions.
    names:
  * Fix false positive for undefined-loop-variable in for-else loops that
- Unpin mccabe and astroid in sitelib metadata.
  * ``unspecified-encoding`` now checks the encoding of
    ``pathlib.Path()`` correctly
  * The python3 porting mode checker and it's ``py3k`` option were
    removed. You can still find it in older pylints  versions.
  * ``raising-bad-type`` is now properly emitted when  raising a
    ``use-set-for-membership`` check: Emitted when using an
    in-place defined ``list`` or ``tuple`` to do a membership
  * ``CodeStyleChecker``
    flow (e. g. if-else clause).
  * Fix false positive for ``protected-access`` if a protected
  * Fix false positive ``dict-iter-missing-items`` for dictionaries
  * The ``unspecified-encoding`` checker now also checks calls to
  * Fix false positive ``superfluous-parens`` for tuples created
  * Fix false positive ``unused-private-member`` for accessing
  * Fix false positive ``unused-private-member`` for private
  * Extended ``consider-using-in`` check to work for attribute
  * Setting ``min-similarity-lines`` to 0 now makes the similarty
  * Fix a bug where pylint complained if the cache's parent

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=152
This commit is contained in:
2023-11-27 20:02:15 +00:00
committed by Git OBS Bridge
parent fb7b428764
commit 501b0677df
4 changed files with 151 additions and 138 deletions

View File

@@ -19,7 +19,7 @@
%{?sle15_python_module_pythons}
%bcond_without tests
Name: python-pylint
Version: 3.0.1
Version: 3.0.2
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 >= 3.0.0 with python-astroid < 3.1.0~dev0)
Requires: (python-astroid >= 3.0.1 with python-astroid < 3.1.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 >= 3.0.0 with %python-astroid < 3.1.0~dev0}
BuildRequires: %{python_module astroid >= 3.0.1 with %python-astroid < 3.1.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}