diff --git a/pylint-3.0.3-gh.tar.gz b/pylint-3.0.3-gh.tar.gz deleted file mode 100644 index c4ff79b..0000000 --- a/pylint-3.0.3-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2880998fc9f3a53fab8989f373faba3f47a3097df0ff2e201ec286bdef0c3aa5 -size 1422200 diff --git a/pylint-3.1.0-gh.tar.gz b/pylint-3.1.0-gh.tar.gz new file mode 100644 index 0000000..2c880ef --- /dev/null +++ b/pylint-3.1.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4c13c6b77f6604367763f906e5df4e9f4c7fbfa6e8553f31493adfabfc73092 +size 1433040 diff --git a/python-pylint.changes b/python-pylint.changes index c45e15f..8922bb8 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Fri Mar 22 20:01:42 UTC 2024 - Dirk Müller + +- 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 diff --git a/python-pylint.spec b/python-pylint.spec index 4d61b04..3bfdcea 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} %bcond_without tests Name: python-pylint -Version: 3.0.3 +Version: 3.1.0 Release: 0 Summary: Syntax and style checker for Python code License: GPL-2.0-or-later @@ -36,38 +36,35 @@ 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.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-mccabe >= 0.6 with python-mccabe < 0.8) %if 0%{?python_version_nodots} < 311 Requires: python-tomli >= 1.1.0 %endif -%if 0%{?python_version_nodots} < 310 -Requires: python-typing-extensions >= 3.10 -%endif +Requires: python-typing-extensions >= 4.9 %if %{with tests} # 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 isort >= 4.2.5 with %python-isort < 6} 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} 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 >= 3.10} +BuildRequires: %{python_module typing-extensions >= 4.9} # /SECTION # SECTION test deps BuildRequires: %{python_module GitPython > 3} 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} BuildRequires: %{python_module requests} # /SECTION %endif Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages