forked from pool/python-pylint
- update to 3.3.1:
* Fix regression causing some f-strings to not be inferred as strings. - update to 3.3.0: * We migrated ``symilar`` to argparse, from getopt, so the error and help output changed (for the better). We exit with 2 instead of sometime 1, sometime 2. The error output is not captured by the runner anymore. It's not possible to use a value for the boolean options anymore (``--ignore-comments 1`` should become ``--ignore-comments``). * Add new `declare-non-slot` error which reports when a class has a `__slots__` member and a type hint on the class is not present in `__slots__`. * Added `too-many-positional-arguments` to allow distinguishing the configuration for too many total arguments (with keyword-only params specified after `*`) from the configuration for too many positional-or-keyword or positional-only arguments. * Add `using-exception-group-in-unsupported-version` and `using-generic-type-syntax-in-unsupported-version` for uses of Python 3.11+ or 3.12+ features on lower supported versions provided with `--py-version`. * Add `using-assignment-expression-in-unsupported-version` for uses of `:=` (walrus operator) on Python versions below 3.8 provided with `--py-version`. * Add `using-positional-only-args-in-unsupported-version` for uses of positional-only args on Python versions below 3.8 provided with `--py-version`. * Add ``unnecessary-default-type-args`` to the ``typing`` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=163
This commit is contained in:
@@ -18,18 +18,15 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%bcond_without tests
|
||||
%global pythons python3
|
||||
Name: python-pylint
|
||||
Version: 3.2.6
|
||||
Version: 3.3.1
|
||||
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
|
||||
# PATCH-FIX-UPSTREAM pytest-8.patch gh#pylint-dev/pylint#9576
|
||||
Patch0: pytest-8.patch
|
||||
# PATCH-FIX-UPSTREAM One commit of gh#pylint-dev/pylint#9851
|
||||
Patch1: support-astroid-3.3.patch
|
||||
BuildRequires: %{python_module base >= 3.7.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -50,6 +47,7 @@ Requires: python-typing-extensions >= 4.9
|
||||
# SECTION pylint deps
|
||||
BuildRequires: %{python_module astroid >= 3.3.0 with %python-astroid < 3.4.0~dev0}
|
||||
BuildRequires: %{python_module dill >= 0.3.6}
|
||||
BuildRequires: %{python_module enchant}
|
||||
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}
|
||||
|
Reference in New Issue
Block a user