forked from pool/python-pylint
- update to 2.17.2:
* invalid-name now allows for integers in typealias names: * now valid: Good2Name, GoodName2. * still invalid: _1BadName. * No longer consider Union as type annotation as type alias for naming checks. * unnecessary-lambda no longer warns on lambdas which use its parameters in their body (other than the final arguments), e.g. lambda foo: (bar if foo else baz)(foo). * Fix a crash in pyreverse when "/" characters are used in the output filename e.g pyreverse -o png -p name/ path/to/project. * Add new option (--show-stdlib, -L) to pyreverse. * This is similar to the behavior of --show-builtin in that standard library modules are now not included by default, and this option will include them. * Adds asyncSetUp to the default defining-attr-methods list to silence * attribute-defined-outside-init warning when using * unittest.IsolatedAsyncioTestCase. * invalid-name now allows for integers in typealias names: * now valid: Good2Name, GoodName2. * still invalid: _1BadName. * No longer consider Union as type annotation as type alias for naming checks. * unnecessary-lambda no longer warns on lambdas which use its parameters in their body (other than the final arguments), e.g. lambda foo: (bar if foo else baz)(foo). * --clear-cache-post-run now also clears LRU caches for OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=143
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
%bcond_without tests
|
||||
Name: python-pylint
|
||||
Version: 2.15.10
|
||||
Version: 2.17.2
|
||||
Release: 0
|
||||
Summary: Syntax and style checker for Python code
|
||||
License: GPL-2.0-or-later
|
||||
@@ -26,8 +26,6 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/pycqa/pylint
|
||||
# Tests are no longer packaged in the PyPI sdist, use GitHub archive
|
||||
Source: https://github.com/PyCQA/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#PyCQA/pylint#7367
|
||||
Patch0: pylint-pr7367-pythonpathtest.patch
|
||||
BuildRequires: %{python_module base >= 3.7.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -37,7 +35,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.12.13 with python-astroid < 2.14.0~dev0)
|
||||
Requires: (python-astroid >= 2.15.2 with python-astroid < 2.17.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
|
||||
@@ -48,7 +46,7 @@ Requires: python-typing-extensions >= 3.10
|
||||
%endif
|
||||
%if %{with tests}
|
||||
# SECTION pylint deps
|
||||
BuildRequires: %{python_module astroid >= 2.12.13 with %python-astroid < 2.14.0~dev0}
|
||||
BuildRequires: %{python_module astroid >= 2.15.2 with %python-astroid < 2.17.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}
|
||||
|
Reference in New Issue
Block a user