From b23a68860e89501b62d9e156679f0cb4db3194aace6a12472b434b6e3217256a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 15 Feb 2023 19:46:01 +0000 Subject: [PATCH] - 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 --- flake8-bugbear-22.12.6.tar.gz | 3 --- flake8-bugbear-23.2.13.tar.gz | 3 +++ python-flake8-bugbear.changes | 25 +++++++++++++++++++++++++ python-flake8-bugbear.spec | 4 ++-- 4 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 flake8-bugbear-22.12.6.tar.gz create mode 100644 flake8-bugbear-23.2.13.tar.gz diff --git a/flake8-bugbear-22.12.6.tar.gz b/flake8-bugbear-22.12.6.tar.gz deleted file mode 100644 index b6e9b1c..0000000 --- a/flake8-bugbear-22.12.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cdb2c06e229971104443ae293e75e64c6107798229202fbe4f4091427a30ac0 -size 44094 diff --git a/flake8-bugbear-23.2.13.tar.gz b/flake8-bugbear-23.2.13.tar.gz new file mode 100644 index 0000000..cf53566 --- /dev/null +++ b/flake8-bugbear-23.2.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39259814a83f33c8409417ee12dd4050c9c0bb4c8707c12fc18ae62b2f3ddee1 +size 52898 diff --git a/python-flake8-bugbear.changes b/python-flake8-bugbear.changes index 309159b..0bac8f8 100644 --- a/python-flake8-bugbear.changes +++ b/python-flake8-bugbear.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Feb 15 19:44:55 UTC 2023 - Dirk Müller + +- 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 diff --git a/python-flake8-bugbear.spec b/python-flake8-bugbear.spec index a89391f..d08a1c4 100644 --- a/python-flake8-bugbear.spec +++ b/python-flake8-bugbear.spec @@ -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