14
0
forked from pool/python-pylint

- Added both_isort_4_5.patch (gh#PyCQA/pylint#3725) allowing

work with both versions of isort.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=112
This commit is contained in:
2020-07-13 22:42:29 +00:00
committed by Git OBS Bridge
parent 66f75d15ab
commit 59ee9776a7
3 changed files with 447 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/pycqa/pylint
Source: https://files.pythonhosted.org/packages/source/p/pylint/pylint-%{version}.tar.gz
# PATCH-FIX-UPSTREAM both_isort_4_5.patch gh#PyCQA/pylint#3725 mcepl@suse.com
# allow using both isort 4 and 5
Patch0: both_isort_4_5.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -69,6 +72,8 @@ feature.
%prep
%setup -q -n pylint-%{version}
%autopatch -p1
# fix test: ignore unexpected message gh#PyCQA/pylint#3635
sed -i 's/import matplotlib.pyplot as plt/& # pylint: disable=no-name-in-module/' tests/functional/u/undefined_variable.py