commit 2f401f81a4eb36f2a3dd1c546afd0ec42e6e35fb103c675d530fd4e19a83df71 Author: Matej Cepl Date: Mon Jun 28 12:53:04 2021 +0000 Accepting request 902797 from home:agraul pylint-ignore is a useful wrapper around pylint that makes it easy to introduce pylint to existing codebases. I think it would be great to have it available next to python-pylint (which it depends on). Difference to 902794/902796 (superseded): removed commented out parts OBS-URL: https://build.opensuse.org/request/show/902797 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint-ignore?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pylint-ignore-2021.1019.tar.gz b/pylint-ignore-2021.1019.tar.gz new file mode 100644 index 0000000..d11a631 --- /dev/null +++ b/pylint-ignore-2021.1019.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:606caaa2b643352791095fd5f602940bef270b313ccd0ef71e2f0fd55b8d846c +size 35889 diff --git a/python-pylint-ignore.changes b/python-pylint-ignore.changes new file mode 100644 index 0000000..324820b --- /dev/null +++ b/python-pylint-ignore.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jun 24 17:42:26 UTC 2021 - Alexander Graul + +- Inital package of pylint-ignore diff --git a/python-pylint-ignore.spec b/python-pylint-ignore.spec new file mode 100644 index 0000000..303df01 --- /dev/null +++ b/python-pylint-ignore.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-pylint-ignore +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pylint-ignore +Version: 2021.1019 +Release: 0 +Summary: Start with silence, not with noise But do start! +License: MIT +URL: https://github.com/mbarkhau/pylint-ignore +Source: https://files.pythonhosted.org/packages/source/p/pylint-ignore/pylint-ignore-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module pathlib2} +BuildRequires: %{python_module pylev} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pylint > 2.4} +# /SECTION +BuildRequires: fdupes +Requires: python-pathlib2 +Requires: python-pylev +Requires: python-astroid > 2.1.0 +Requires: python-pylint > 2.4 +BuildArch: noarch +%python_subpackages + +%description +Start with silence, not with noise. But do start! + +Pylint-ignore is a wrapper around Pylint that maintains a pylint-ignore.md file. +This file is used to ignore Pylint messages without adding comments to the +source code itself. It's similar to Rupocop's .rubocop_todo.yml. + +%prep +%setup -q -n pylint-ignore-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pylint-ignore +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand sed -i 's,/usr/bin/env python,,' %{buildroot}%{$python_sitelib}/pylint_ignore/__main__.py + +%check +%pytest + +%post +%python_install_alternative pylint-ignore + +%postun +%python_uninstall_alternative pylint-ignore + +%files %{python_files} +%doc CHANGELOG.md README.md +%license LICENSE +%python_alternative %{_bindir}/pylint-ignore +%{python_sitelib}/* + +%changelog