15
0
Files
python-flake8-bugbear/python-flake8-bugbear.spec

68 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-flake8-bugbear
#
Accepting request 999682 from home:marxin:branches:devel:languages:python - Update 22.8.23: * Add B024 error code to message for B024 (#276) * Add B024: abstract base class with no abstract methods (#273) * Implement late-binding loop check (#265) * late-binding closures are a classic gotcha. * Don't crash when select / extend_select are None (#261) * Ignore lambda arguments for B020 (#259) * Fix missing space typos in B021, B022 error messages (#257) * Ignore black formatting for b013 test case (#251) * B010 Fix lambda flase positive (#246) * B008 Fix edge case with lambda functions (#243) * B006 and B008: Detect function calls at any level of the default expression (#239) * B020: Fix comprehension false postives (#238) * Tweak B019 desc (#237) * B022: No arguments passed to contextlib.suppress (#231) * B021: f-string used as docstring. (#230) * B020: ensure loop control variable doesn't overrides iterable it iterates (#220) * B019: check to find cache decorators on class methods (#218) * Fix crash on long empty string (#223) * B018: Ignore JoinedStr (#216) * Build universal Python 3 wheels (#214) * B950: Add same special cases as E501 (#213) * B018: Disable strings from check for now (#209) * B904: ensure the raise is in the same context with the except (#191) * Add Option to extend the list of immutable calls (#204) * Update B014: binascii.Error is now treated as a subclass of ValueError (#206) * add simple pre-commit config (#205) * Test with 3.10 official * Add B018 check to find useless declarations (#196, #202) * Fix crash on call in except statement in _to_name_str (#187) OBS-URL: https://build.opensuse.org/request/show/999682 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=15
2022-08-29 09:41:10 +00:00
# Copyright (c) 2022 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-flake8-bugbear
Version: 22.10.25
Release: 0
Summary: A plugin for flake8 finding likely bugs and design problems in your program
License: MIT
Group: Development/Languages/Python
URL: https://github.com/PyCQA/flake8-bugbear
Source: https://files.pythonhosted.org/packages/source/f/flake8-bugbear/flake8-bugbear-%{version}.tar.gz
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module flake8 >= 3.0.0}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs >= 19.2.0
Requires: python-flake8 >= 3.0.0
BuildArch: noarch
%python_subpackages
%description
A plugin for Flake8 finding likely bugs and design problems in your
program. Contains warnings that don't belong in pyflakes and
pycodestyle.
%prep
%setup -q -n flake8-bugbear-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Fuzz testing needs fast machine for quick enough data responses
%pytest -k 'not TestFuzz'
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog