forked from pool/python-pylint
- update to 3.1.0:
* Two new checks--``use-yield-from``, ``deprecated- attribute``-- and a smattering of bug fixes. * Skip ``consider-using-join`` check for non-empty separators if an ``suggest-join-with-non-empty-separator`` option is set to ``no``. * Discover ``.pyi`` files when linting. * Check ``TypeAlias`` and ``TypeVar`` (PEP 695) nodes for ``invalid-name``. * Support for resolving external toml files named pylintrc.toml and .pylintrc.toml. * Check for `.clear`, `.discard`, `.pop` and `remove` methods being called on a set while it is being iterated over. * New message `use-yield-from` added to the refactoring checker. This message is emitted when yielding from a loop can be replaced by `yield from`. * Added a ``deprecated-attribute`` message to check deprecated attributes in the stdlib. * Exempt ``TypedDict`` from ``typing_extensions`` from ``too- many-ancestor`` checks. * Extend broad-exception-raised and broad-exception-caught to except*. * Fix a false-negative for unnecessary if blocks using a different than expected ordering of arguments. * For "import X", it will report "(standard/third party/first party/local) import X" * For "import X.Y" and "from X import Y", it will report "(standard/third party/first party/local) import X.Y" * The import category is specified to provide explanation as to why pylint has issued the message and guidence to the OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=156
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2880998fc9f3a53fab8989f373faba3f47a3097df0ff2e201ec286bdef0c3aa5
|
|
||||||
size 1422200
|
|
3
pylint-3.1.0-gh.tar.gz
Normal file
3
pylint-3.1.0-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c4c13c6b77f6604367763f906e5df4e9f4c7fbfa6e8553f31493adfabfc73092
|
||||||
|
size 1433040
|
@@ -1,3 +1,40 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 22 20:01:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.1.0:
|
||||||
|
* Two new checks--``use-yield-from``, ``deprecated-
|
||||||
|
attribute``-- and a smattering of bug fixes.
|
||||||
|
* Skip ``consider-using-join`` check for non-empty separators
|
||||||
|
if an ``suggest-join-with-non-empty-separator`` option is set
|
||||||
|
to ``no``.
|
||||||
|
* Discover ``.pyi`` files when linting.
|
||||||
|
* Check ``TypeAlias`` and ``TypeVar`` (PEP 695) nodes for
|
||||||
|
``invalid-name``.
|
||||||
|
* Support for resolving external toml files named pylintrc.toml
|
||||||
|
and .pylintrc.toml.
|
||||||
|
* Check for `.clear`, `.discard`, `.pop` and `remove` methods
|
||||||
|
being called on a set while it is being iterated over.
|
||||||
|
* New message `use-yield-from` added to the refactoring
|
||||||
|
checker. This message is emitted when yielding from a loop
|
||||||
|
can be replaced by `yield from`.
|
||||||
|
* Added a ``deprecated-attribute`` message to check deprecated
|
||||||
|
attributes in the stdlib.
|
||||||
|
* Exempt ``TypedDict`` from ``typing_extensions`` from ``too-
|
||||||
|
many-ancestor`` checks.
|
||||||
|
* Extend broad-exception-raised and broad-exception-caught to
|
||||||
|
except*.
|
||||||
|
* Fix a false-negative for unnecessary if blocks using a
|
||||||
|
different than expected ordering of arguments.
|
||||||
|
* For "import X", it will report "(standard/third party/first
|
||||||
|
party/local) import X"
|
||||||
|
* For "import X.Y" and "from X import Y", it will report
|
||||||
|
"(standard/third party/first party/local) import X.Y"
|
||||||
|
* The import category is specified to provide explanation as to
|
||||||
|
why pylint has issued the message and guidence to the
|
||||||
|
developer on how to fix the problem.
|
||||||
|
* Fix a crash when an enum class which is also decorated with a
|
||||||
|
``dataclasses.dataclass`` decorator is defined.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 18 08:23:50 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Mon Dec 18 08:23:50 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylint
|
# spec file for package python-pylint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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 @@
|
|||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
Name: python-pylint
|
Name: python-pylint
|
||||||
Version: 3.0.3
|
Version: 3.1.0
|
||||||
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
|
||||||
@@ -36,31 +36,28 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-dill >= 0.3.6
|
Requires: python-dill >= 0.3.6
|
||||||
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.0.1 with python-astroid < 3.1.0~dev0)
|
Requires: (python-astroid >= 3.1.0 with python-astroid < 3.2.0~dev0)
|
||||||
Requires: (python-isort >= 4.2.5 with python-isort < 6)
|
Requires: (python-isort >= 4.2.5 with python-isort < 6)
|
||||||
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
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?python_version_nodots} < 310
|
Requires: python-typing-extensions >= 4.9
|
||||||
Requires: python-typing-extensions >= 3.10
|
|
||||||
%endif
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
# SECTION pylint deps
|
# SECTION pylint deps
|
||||||
BuildRequires: %{python_module astroid >= 3.0.1 with %python-astroid < 3.1.0~dev0}
|
BuildRequires: %{python_module astroid >= 3.1.0 with %python-astroid < 3.2.0~dev0}
|
||||||
BuildRequires: %{python_module dill >= 0.3.6}
|
BuildRequires: %{python_module dill >= 0.3.6}
|
||||||
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6}
|
BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6}
|
||||||
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}
|
||||||
BuildRequires: %{python_module tomlkit >= 0.10.1}
|
BuildRequires: %{python_module tomlkit >= 0.10.1}
|
||||||
# typing-extensions for python310 required for tests only, same as gh#PyCQA/astroid#1585
|
BuildRequires: %{python_module typing-extensions >= 4.9}
|
||||||
BuildRequires: %{python_module typing-extensions >= 3.10}
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
# SECTION test deps
|
# SECTION test deps
|
||||||
BuildRequires: %{python_module GitPython > 3}
|
BuildRequires: %{python_module GitPython > 3}
|
||||||
BuildRequires: %{python_module pytest-rerunfailures}
|
BuildRequires: %{python_module pytest-rerunfailures}
|
||||||
BuildRequires: %{python_module pytest-timeout}
|
BuildRequires: %{python_module pytest-timeout >= 2.2}
|
||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests}
|
BuildRequires: %{python_module requests}
|
||||||
|
Reference in New Issue
Block a user