14
0

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
This commit is contained in:
2021-06-28 12:53:04 +00:00
committed by Git OBS Bridge
commit 2f401f81a4
5 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:606caaa2b643352791095fd5f602940bef270b313ccd0ef71e2f0fd55b8d846c
size 35889

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jun 24 17:42:26 UTC 2021 - Alexander Graul <alexander.graul@suse.com>
- Inital package of pylint-ignore

77
python-pylint-ignore.spec Normal file
View File

@@ -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