15
0

- update to 23.2.13:

* 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
This commit is contained in:
2023-02-15 19:46:01 +00:00
committed by Git OBS Bridge
parent 1a1c900fb9
commit b23a68860e
4 changed files with 30 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cdb2c06e229971104443ae293e75e64c6107798229202fbe4f4091427a30ac0
size 44094

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39259814a83f33c8409417ee12dd4050c9c0bb4c8707c12fc18ae62b2f3ddee1
size 52898

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Wed Feb 15 19:44:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 23.2.13:
* 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)
-------------------------------------------------------------------
Thu Dec 15 20:59:46 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-flake8-bugbear
#
# Copyright (c) 2022 SUSE LLC
# 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
@@ -19,7 +19,7 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-flake8-bugbear
Version: 22.12.6
Version: 23.2.13
Release: 0
Summary: A plugin for flake8 finding likely bugs and design problems in your program
License: MIT