17
0
Files
python-flake8-bugbear/python-flake8-bugbear.spec
Dirk Mueller f146728c1e - update to 24.12.12:
* B012 and B025 now also handle try/except*
  * Skip B028 if warnings.warn is called with ``*args`` or
    ``**kwargs``
  * Add B911: itertools.batched without strict=
  * Readme has anchors per check (they do not seem to render on
    GitHub tho)
- update to 24.10.31:
  * B041: New dictionary same key AND value check
  * B037: Fix typo in error message
  * B024: No longer treats assigned class variables as abstract
  * Bump required attrs version to 22.2.0
- update to 24.8.19:
  * B910: implement to suggest using Counter() instead of
    defaultdict(int)
  * B901: Do not trigger with explicit Generator return type
  * B008: add some comments, rename b008_extend_immutable_calls
  * B040: exception with note added not reraised or used
  * B039, Add ``ContextVar`` with mutable literal or function
    call as default
  * B040: Add Exception with added note not reraised.
  * Run tests in Python 3.13
  * Type annotated code
  * Replace hash with unsafe_hash
- update to 24.4.26:
  * B909: Fix false positive affecting containers of mutables
- update to 24.4.21:
  * B950: Add pragma comment to line length ignores
  * B909: Add more cases to detect + more container mutating
    functions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=45
2025-09-29 10:49:03 +00:00

71 lines
2.3 KiB
RPMSpec

#
# spec file for package python-flake8-bugbear
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-flake8-bugbear
Version: 24.12.12
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.8}
BuildRequires: %{python_module flake8 >= 6.0.0}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs >= 19.2.0
Requires: python-flake8 >= 6.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
%pyproject_wheel
%install
%pyproject_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}/bugbear.py
%{python_sitelib}/flake8[-_]bugbear-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/bugbear*
%changelog