forked from pool/python-pylint
Accepting request 1119232 from home:ecsos:python
- Update to 3.0.1: * False Positives Fixed - Fixed false positive for inherit-non-class for generic Protocols. Closes #9106 * Other Changes - Fix a crash when an enum class which is also decorated with a dataclasses.dataclass decorator is defined. Closes #9100 - Update to 3.0.0: - Pylint now support python 3.12 officially. - The required astroid version is now 3.0.0 For all chaanges see: https://github.com/pylint-dev/pylint/releases/tag/v3.0.0 - Changes from 2.17.7 2.17.7 is the last release before we only support pylint 3.0.0 or superior and python 3.8 or superior. * False Positives Fixed - Fix a regression in pylint 2.17.6 / astroid 2.15.7 causing various messages for code involving TypeVar. Closes #9069 * Other Bug Fixes - Fix crash in refactoring checker when unary operand used with variable in for loop. Closes #9074 - Changes from 2.17.6 * Other Bug Fixes - When parsing comma-separated lists of regular expressions in the config, ignore commas that are inside braces since those indicate quantifiers, not delineation between expressions. Closes #7229 - sys.argv is now always correctly considered as impossible to infer (instead of using the actual values given to pylint). Closes #9047 - Don't show class fields more than once in Pyreverse diagrams. Closes #8189 - Don't show arrows more than once in Pyreverse diagrams. Closes #8522 - Don't show duplicate type annotations in Pyreverse diagrams. Closes #8888 - Don't add Optional to | annotations with None in Pyreverse diagrams. Closes #9014 - Changes from 2.17.5 * False Positives Fixed - Fix a false positive for unused-variable when there is an import in a if TYPE_CHECKING: block and allow-global-unused-variables is set to no in the configuration. Closes #8696 - Fix false positives generated when supplying arguments as **kwargs to IO calls like open(). Closes #8719 - Fix a false positive where pylint was ignoring method calls annotated as NoReturn during the inconsistent-return-statements check. Closes #8747 - Exempt parents with only type annotations from the invalid-enum-extension message. Closes #8830 * Other Bug Fixes - Fixed crash when a call to super() was placed after an operator (e.g. not). Closes #8554 - Fix crash for modified-while-iterating checker when deleting members of a dict returned from a call. Closes #8598 - Fix crash in invalid-metaclass check when a metaclass had duplicate bases. Closes #8698 - Avoid consider-using-f-string on modulos with brackets in template. Closes #8720. - Fix a crash when __all__ exists but cannot be inferred. Closes #8740 - Fix crash when a variable is assigned to a class attribute of identical name. Closes #8754 - Fixed a crash when calling copy.copy() without arguments. Closes #8774 * Other Changes - Fix a crash when a nonlocal is defined at module-level. Closes #8735 OBS-URL: https://build.opensuse.org/request/show/1119232 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=150
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a4be4ce65a5ab900fec8a6f38670e84c9720cb1b611991845c2c5ff136afb794
|
||||
size 1411540
|
3
pylint-3.0.1-gh.tar.gz
Normal file
3
pylint-3.0.1-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aab8dc249ca704bcc075695d22704a21d167732699b6815498dcb451fb91a887
|
||||
size 1419203
|
@@ -1,3 +1,82 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 20 11:48:34 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Update to 3.0.1:
|
||||
* False Positives Fixed
|
||||
- Fixed false positive for inherit-non-class for generic Protocols.
|
||||
Closes #9106
|
||||
* Other Changes
|
||||
- Fix a crash when an enum class which is also decorated with a dataclasses.dataclass decorator is defined.
|
||||
Closes #9100
|
||||
- Update to 3.0.0:
|
||||
- Pylint now support python 3.12 officially.
|
||||
- The required astroid version is now 3.0.0
|
||||
For all chaanges see:
|
||||
https://github.com/pylint-dev/pylint/releases/tag/v3.0.0
|
||||
- Changes from 2.17.7
|
||||
2.17.7 is the last release before we only support pylint 3.0.0 or superior and python 3.8 or superior.
|
||||
* False Positives Fixed
|
||||
- Fix a regression in pylint 2.17.6 / astroid 2.15.7 causing various
|
||||
messages for code involving TypeVar.
|
||||
Closes #9069
|
||||
* Other Bug Fixes
|
||||
- Fix crash in refactoring checker when unary operand used with variable in for
|
||||
loop.
|
||||
Closes #9074
|
||||
- Changes from 2.17.6
|
||||
* Other Bug Fixes
|
||||
- When parsing comma-separated lists of regular expressions in the config,
|
||||
ignore commas that are inside braces since those indicate quantifiers, not
|
||||
delineation between expressions.
|
||||
Closes #7229
|
||||
- sys.argv is now always correctly considered as impossible to infer
|
||||
(instead of using the actual values given to pylint).
|
||||
Closes #9047
|
||||
- Don't show class fields more than once in Pyreverse diagrams.
|
||||
Closes #8189
|
||||
- Don't show arrows more than once in Pyreverse diagrams.
|
||||
Closes #8522
|
||||
- Don't show duplicate type annotations in Pyreverse diagrams.
|
||||
Closes #8888
|
||||
- Don't add Optional to | annotations with None in Pyreverse diagrams.
|
||||
Closes #9014
|
||||
- Changes from 2.17.5
|
||||
* False Positives Fixed
|
||||
- Fix a false positive for unused-variable when there is an import in a
|
||||
if TYPE_CHECKING: block and allow-global-unused-variables is set to
|
||||
no in the configuration.
|
||||
Closes #8696
|
||||
- Fix false positives generated when supplying arguments as **kwargs to IO
|
||||
calls like open().
|
||||
Closes #8719
|
||||
- Fix a false positive where pylint was ignoring method calls annotated as
|
||||
NoReturn during the inconsistent-return-statements check.
|
||||
Closes #8747
|
||||
- Exempt parents with only type annotations from the invalid-enum-extension
|
||||
message.
|
||||
Closes #8830
|
||||
* Other Bug Fixes
|
||||
- Fixed crash when a call to super() was placed after an operator (e.g.
|
||||
not).
|
||||
Closes #8554
|
||||
- Fix crash for modified-while-iterating checker when deleting
|
||||
members of a dict returned from a call.
|
||||
Closes #8598
|
||||
- Fix crash in invalid-metaclass check when a metaclass had duplicate
|
||||
bases.
|
||||
Closes #8698
|
||||
- Avoid consider-using-f-string on modulos with brackets in template.
|
||||
Closes #8720.
|
||||
- Fix a crash when __all__ exists but cannot be inferred.
|
||||
Closes #8740
|
||||
- Fix crash when a variable is assigned to a class attribute of identical name.
|
||||
Closes #8754
|
||||
- Fixed a crash when calling copy.copy() without arguments.
|
||||
Closes #8774
|
||||
* Other Changes
|
||||
- Fix a crash when a nonlocal is defined at module-level.
|
||||
Closes #8735
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 1 07:23:25 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
%{?sle15_python_module_pythons}
|
||||
%bcond_without tests
|
||||
Name: python-pylint
|
||||
Version: 2.17.4
|
||||
Version: 3.0.1
|
||||
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.4 with python-astroid < 2.17.0~dev0)
|
||||
Requires: (python-astroid >= 3.0.0 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 >= 2.15.4 with %python-astroid < 2.17.0~dev0}
|
||||
BuildRequires: %{python_module astroid >= 3.0.0 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}
|
||||
@@ -98,7 +98,7 @@ export LC_ALL="en_US.UTF-8"
|
||||
%install
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
%pyproject_install
|
||||
for p in pylint epylint pyreverse symilar pylint-config ; do
|
||||
for p in pylint pyreverse symilar pylint-config ; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||
done
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
@@ -111,7 +111,7 @@ export LC_ALL="en_US.UTF-8"
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative pylint epylint pyreverse symilar pylint-config
|
||||
%python_install_alternative pylint pyreverse symilar pylint-config
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pylint
|
||||
@@ -122,7 +122,6 @@ export LC_ALL="en_US.UTF-8"
|
||||
%doc examples/
|
||||
%python_alternative %{_bindir}/pylint
|
||||
%python_alternative %{_bindir}/pylint-config
|
||||
%python_alternative %{_bindir}/epylint
|
||||
%python_alternative %{_bindir}/pyreverse
|
||||
%python_alternative %{_bindir}/symilar
|
||||
%{python_sitelib}/pylint/
|
||||
|
Reference in New Issue
Block a user