forked from pool/python-flake8-bugbear
* B906: Add visit_Bytes, visit_Num and visit_Str to
the list of visit_* functions that are ignored by the B906
check.
* B016: Warn when raising f-strings.
* Add B028: Check for an explicit stacklevel keyword argument
on the warn method from the warnings module.
* Add B029: Check when trying to use ``except`` with an empty
tuple i.e. ``except: ()``.
* Add B032: Check for possible unintentional type annotations
instead of assignments.
* B024: now ignores classes without any methods. (#336)
* B017: Don't warn when ``pytest.raises()`` has a ``match``
argument. (#334)
* B906: Ignore ``visit_`` functions with a ``_fields``
attribute that can't contain ast.AST subnodes. (#330)
* Rename B028 to B907, making it optional/opinionated.
* Add B906: ``visit_`` function with no further calls to a
``visit`` function. (#313)
* Add B028: Suggest ``!r`` when formatted value in f-string is
surrounded by quotes. (#319)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=23
68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-flake8-bugbear
|
|
#
|
|
# Copyright (c) 2023 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: 23.2.13
|
|
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
|