Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a3de6ac720 | |||
| e86f27dafe | |||
| dd5c9f277c | |||
| 47142cb9a1 | |||
| 81c1d0998d | |||
| b9f15d3b52 |
BIN
pylint-3.3.7-gh.tar.gz
LFS
BIN
pylint-3.3.7-gh.tar.gz
LFS
Binary file not shown.
3
pylint-4.0.3-gh.tar.gz
Normal file
3
pylint-4.0.3-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7c726c7d28fbdb7e0a3c984233467147e718b87084cdc9c7831b746538d7889
|
||||
size 1508958
|
||||
@@ -1,3 +1,140 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 17 04:33:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 4.0.3:
|
||||
* Add Enum dunder methods _generate_next_value_, _missing_, _numeric_repr_,
|
||||
_add_alias_, and _add_value_alias_ to the list passed to
|
||||
--good-dunder-names.
|
||||
* Fixed false positive for invalid-name with typing.Annotated.
|
||||
* Fix false positive for f-string-without-interpolation with template
|
||||
strings when using format spec.
|
||||
* Fix a false positive when an UPPER_CASED class attribute was raising an
|
||||
invalid-name when typed with Final.
|
||||
* Fix a false positive for unbalanced-tuple-unpacking when a tuple is
|
||||
assigned to a function call and the structure of the function's return
|
||||
value is ambiguous.
|
||||
* Make 'ignore' option work as expected again.
|
||||
* Fix crash for consider-using-assignment-expr when a variable annotation
|
||||
without assignment is used as the if test expression.
|
||||
* Fix crash for prefer-typing-namedtuple and consider-math-not-float when
|
||||
a slice object is called.
|
||||
* Fix false positive for invalid-name on a partially uninferable
|
||||
module-level constant.
|
||||
* Fix a false positive for invalid-name on exclusive module-level
|
||||
assignments composed of three or more branches.
|
||||
* Fix false positive for invalid-name for TypedDict instances.
|
||||
* Fix false-positive for bare-name-capture-pattern if a case guard is used.
|
||||
* Check enums created with the Enum() functional syntax to pass against the
|
||||
--class-rgx for the invalid-name check, like other enums.
|
||||
* Pylint now supports Python 3.14.
|
||||
* Pylint's inference engine (astroid) is now much more precise,
|
||||
understanding implicit booleanness and ternary expressions. The required
|
||||
astroid version is now 4.0.0.
|
||||
* Handling of invalid-name at the module level was patchy. Now,
|
||||
module-level constants that are reassigned are treated as variables and
|
||||
checked against --variable-rgx rather than --const-rgx. Module-level
|
||||
lists, sets, and objects can pass against either regex.
|
||||
* invalid-name now distinguishes module-level constants that are assigned
|
||||
only once from those that are reassigned and now applies --variable-rgx
|
||||
to the latter.
|
||||
* The unused pylintrc argument to PyLinter.__init__() is deprecated and
|
||||
will be removed.
|
||||
* pyreverse Run was changed to no longer call sys.exit() in its __init__.
|
||||
* The suggestion-mode option was removed, as pylint now always emits
|
||||
user-friendly hints instead of false-positive error messages.
|
||||
* The async.py checker module has been renamed to async_checker.py since
|
||||
async is a Python keyword and cannot be imported directly. This allows
|
||||
for better testing and extensibility of the async checker functionality.
|
||||
* The message-id of continue-in-finally was changed from E0116 to W0136.
|
||||
The warning is now emitted for every Python version since it will raise a
|
||||
syntax warning in Python 3.14.
|
||||
* Removed support for nmp.NaN alias for numpy.NaN being recognized in
|
||||
nan-comparison.
|
||||
* Version requirement for isort has been bumped to >=5.0.0.
|
||||
* comparison-of-constants now uses the unicode from the ast instead of
|
||||
reformatting from the node's values preventing some bad formatting due to
|
||||
utf-8 limitation.
|
||||
* The use-implicit-booleaness-not-x checks now distinguish between
|
||||
comparisons used in boolean contexts and those that are not, enabling
|
||||
them to provide more accurate refactoring suggestions.
|
||||
* The verbose option now outputs the filenames of the files that have been
|
||||
checked.
|
||||
* colorized reporter now colorizes messages/categories that have been
|
||||
configured as fail-on in red inverse.
|
||||
* Enhanced support for @property decorator in pyreverse to correctly
|
||||
display return types of annotated properties when generating class
|
||||
diagrams.
|
||||
* Handle deferred evaluation of annotations in Python 3.14.
|
||||
* pyreverse: add support for colorized output when using output format mmd
|
||||
(MermaidJS) and html.
|
||||
* pypy 3.11 is now officially supported.
|
||||
* Add support for Python 3.14.
|
||||
* Add naming styles for ParamSpec and TypeVarTuple that align with the
|
||||
TypeVar style.
|
||||
* Add match-statements checker and the following message:
|
||||
bare-name-capture-pattern.
|
||||
* Add new check async-context-manager-with-regular-with to detect async
|
||||
context managers used with regular with statements instead of async with.
|
||||
* Add break-in-finally warning. Using break inside the finally clause will
|
||||
raise a syntax warning in Python 3.14.
|
||||
* Add new checks for invalid uses of class patterns in match.
|
||||
* Add additional checks for suboptimal uses of class patterns in match.
|
||||
* Add a consider-math-not-float message. float("nan") and float("inf") are
|
||||
slower than their counterpart math.inf and math.nan by a factor of 4
|
||||
(notwithstanding the initial import of math) and they are also not well
|
||||
typed when using mypy.
|
||||
* Fix a false positive for used-before-assignment when a variable defined
|
||||
under an if and via a named expression (walrus operator) is used later
|
||||
when guarded under the same if test.
|
||||
* Fix no-name-in-module for members of concurrent.futures with Python 3.14.
|
||||
* Fix false negative for used-before-assignment when a TYPE_CHECKING import
|
||||
is used as a type annotation prior to erroneous usage.
|
||||
* Match cases are now counted as edges in the McCabe graph and will
|
||||
increase the complexity accordingly.
|
||||
* Check module-level constants with type annotations for invalid-name.
|
||||
* Fix false negative where function-redefined (E0102) was not reported for
|
||||
functions with a leading underscore.
|
||||
* We now raise a logging-too-few-args for format string with no
|
||||
interpolation arguments at all.
|
||||
* Fix false negative for used-before-assignment when a function is defined
|
||||
inside a TYPE_CHECKING guard block and used later.
|
||||
* Fix a false negative for possibly-used-before-assignment when a variable
|
||||
is conditionally defined and later assigned to a type-annotated variable.
|
||||
* Fix false negative for deprecated-module when a __import__ method is used
|
||||
instead of import sentence.
|
||||
* Remove support for launching pylint with Python 3.9.
|
||||
* Fix used-before-assignment for PEP 695 type aliases and parameters.
|
||||
* No longer flag undeprecated functions in importlib.resources as
|
||||
deprecated.
|
||||
* Fix false positive inconsistent-return-statements when using quit() or
|
||||
exit() functions.
|
||||
* Fix false positive undefined-variable (E0602) for for-loop variable
|
||||
shadowing patterns like for item in item: when the variable was
|
||||
previously defined.
|
||||
* Fixed crash in 'unnecessary-list-index-lookup' when starting an
|
||||
enumeration using minus the length of an iterable inside a dict
|
||||
comprehension when the len call was only made in this dict comprehension,
|
||||
and not elsewhere.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 14 18:17:44 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 3.3.8:
|
||||
* Fix false positives for `possibly-used-before-assignment`
|
||||
when variables are exhaustively assigned within a `match` block.
|
||||
* Fix false positive for `missing-raises-doc` and `missing-
|
||||
yield-doc` when the method length is less than docstring-min-
|
||||
length.
|
||||
* Fix a false positive for ``unused-variable`` when multiple
|
||||
except handlers bind the same name under a try block.
|
||||
* Fix false-negative for ``used-before-assignment`` with ``from
|
||||
__future__ import annotations`` in function definitions.
|
||||
* Fix a bug in Pyreverse where aggregations and associations
|
||||
were included in diagrams regardless of the selected
|
||||
--filter-mode (such as PUB_ONLY, ALL, etc.).
|
||||
* Fix double underscores erroneously rendering as bold in
|
||||
pyreverse's Mermaid output.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 25 09:53:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -24,14 +24,14 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pylint
|
||||
Version: 3.3.7
|
||||
Version: 4.0.3
|
||||
Release: 0
|
||||
Summary: Syntax and style checker for Python code
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/pylint-dev/pylint
|
||||
# Tests are no longer packaged in the PyPI sdist, use GitHub archive
|
||||
Source: https://github.com/pylint-dev/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7.2}
|
||||
BuildRequires: %{python_module base >= 3.10}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
@@ -40,8 +40,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.8 with python-astroid < 4.0.0~dev0)
|
||||
Requires: (python-isort >= 4.2.5 with python-isort < 7)
|
||||
Requires: (python-astroid >= 4.0.2 with python-astroid < 4.1.0~dev0)
|
||||
Requires: (python-isort >= 5 with python-isort < 8)
|
||||
Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8)
|
||||
BuildArch: noarch
|
||||
%if 0%{?python_version_nodots} < 311
|
||||
@@ -52,10 +52,10 @@ Requires: python-typing-extensions >= 3.10
|
||||
%endif
|
||||
%if %{with tests}
|
||||
# SECTION pylint deps
|
||||
BuildRequires: %{python_module astroid >= 3.3.8 with %python-astroid < 4.0.0~dev0}
|
||||
BuildRequires: %{python_module astroid >= 4.0.2 with %python-astroid < 4.1.0~dev0}
|
||||
BuildRequires: %{python_module dill >= 0.3.7}
|
||||
BuildRequires: %{python_module enchant}
|
||||
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 7}
|
||||
BuildRequires: %{python_module isort >= 5 with %python-isort < 8}
|
||||
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}
|
||||
@@ -118,13 +118,9 @@ done
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
# reruns: tests/pyreverse is incredibly non-deterministic in failures
|
||||
donttest="test_linter_with_unpickleable_plugins_is_pickleable"
|
||||
# Fails with pytest-8 gh#pylint-dev/pylint#9545
|
||||
donttest+=" or recursion_error_3159"
|
||||
# Fails with python 3.12
|
||||
donttest+=" or test_functional_relation_extraction"
|
||||
# Broken upstream
|
||||
donttest+=" or test_functional"
|
||||
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
|
||||
donttest+=" or test_functional or test_progress_reporting"
|
||||
%pytest -vv -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
%pre
|
||||
|
||||
Reference in New Issue
Block a user