Marcel Telka
2023-11-27 c9b1712b150502e70e18fff73addf857cbbb2bb2
python/flake8-bugbear: update to 23.11.26

4 files modified
31 ■■■■ changed files
components/python/flake8-bugbear/Makefile 6 ●●●● patch | view | raw | blame | history
components/python/flake8-bugbear/history 2 ●●● patch | view | raw | blame | history
components/python/flake8-bugbear/patches/01-no-hypothesmith.patch 14 ●●●● patch | view | raw | blame | history
components/python/flake8-bugbear/test/results-all.master 9 ●●●●● patch | view | raw | blame | history
components/python/flake8-bugbear/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        flake8-bugbear
HUMAN_VERSION =            23.9.16
HUMAN_VERSION =            23.11.26
COMPONENT_SUMMARY =        flake8-bugbear - A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
COMPONENT_PROJECT_URL =        https://github.com/PyCQA/flake8-bugbear
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/4c/fd/07a050a23e310581f8d4b6e50ffe0593fac0f049a6abc9a318b5c161327a/flake8-bugbear-23.9.16.tar.gz
    https://files.pythonhosted.org/packages/25/41/68809955b055aec1cad25d5294da4425f10c65a92229bfa39b6607ab6ec8/flake8-bugbear-23.11.26.tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:90cf04b19ca02a682feb5aac67cae8de742af70538590509941ab10ae8351f71
    sha256:8e36119071bab626b6dab834fadd6d03c06090e9b189e67b4905821df8212fee
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
components/python/flake8-bugbear/history
@@ -1 +1 @@
library/python/flake8-bugbear-37@23.3.12,5.11-2023.0.0.1 noincorporate
library/python/flake8-bugbear-37@23.3.12,5.11-2023.0.0.2
components/python/flake8-bugbear/patches/01-no-hypothesmith.patch
@@ -1,6 +1,6 @@
--- flake8-bugbear-23.9.16/tests/test_bugbear.py.orig
+++ flake8-bugbear-23.9.16/tests/test_bugbear.py
@@ -853,19 +853,8 @@
--- flake8-bugbear-23.11.26/tests/test_bugbear.py.orig
+++ flake8-bugbear-23.11.26/tests/test_bugbear.py
@@ -870,19 +870,8 @@
 
 
 class TestFuzz(unittest.TestCase):
@@ -21,7 +21,7 @@
     def test_does_not_crash_on_site_code(self):
         # Because the generator isn't perfect, we'll also test on all the code
         # we can easily find in our current Python environment - this includes
@@ -876,6 +865,7 @@
@@ -893,6 +882,7 @@
                     if f.endswith(".py"):
                         BugBearChecker(filename=str(Path(dirname) / f))
 
@@ -29,7 +29,7 @@
     def test_does_not_crash_on_tuple_expansion_in_except_statement(self):
         # akin to test_does_not_crash_on_any_valid_code
         # but targets a rare case that's not covered by hypothesmith.from_grammar
@@ -890,6 +880,7 @@
@@ -907,6 +897,7 @@
         )
         BugBearVisitor(filename="<string>", lines=[]).visit(syntax_tree)
 
@@ -37,8 +37,8 @@
     def test_does_not_crash_on_call_in_except_statement(self):
         # akin to test_does_not_crash_on_tuple_expansion_in_except_statement
         # see https://github.com/PyCQA/flake8-bugbear/issues/171
--- flake8-bugbear-23.9.16/tox.ini.orig
+++ flake8-bugbear-23.9.16/tox.ini
--- flake8-bugbear-23.11.26/tox.ini.orig
+++ flake8-bugbear-23.11.26/tox.ini
@@ -16,7 +16,6 @@
 deps =
     coverage
components/python/flake8-bugbear/test/results-all.master
@@ -35,6 +35,7 @@
test_b032 (__main__.BugbearTestCase) ... ok
test_b033 (__main__.BugbearTestCase) ... ok
test_b034 (__main__.BugbearTestCase) ... ok
test_b035 (__main__.BugbearTestCase) ... ok
test_b901 (__main__.BugbearTestCase) ... ok
test_b902 (__main__.BugbearTestCase) ... ok
test_b902_extended (__main__.BugbearTestCase) ... ok
@@ -57,15 +58,15 @@
test_does_not_crash_on_tuple_expansion_in_except_statement (__main__.TestFuzz) ... skipped 'No hypothesmith packaged yet'
----------------------------------------------------------------------
Ran 55 tests
Ran 56 tests
OK (skipped=4)
py$(PYV): commands[1]> python -m coverage report -m
Name                    Stmts   Miss  Cover   Missing
-----------------------------------------------------
bugbear.py                874     28    97%   135-136, 146-157, 285, 299, 352, 578, 1162, 1179, 1215-1237, 1244, 1318, 1429, 1534-1535
tests/test_bugbear.py     350     14    96%   743-757, 862-866, 873-881, 887-890
bugbear.py                899     28    97%   135-136, 146-157, 285, 299, 352, 584, 1210, 1227, 1263-1285, 1292, 1366, 1477, 1582-1583
tests/test_bugbear.py     356     14    96%   760-774, 879-883, 890-898, 904-907
-----------------------------------------------------
TOTAL                    1224     42    97%
TOTAL                    1255     42    97%
  py$(PYV): OK
  congratulations :)