Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-flake8-bugbear for
openSUSE:Factory checked in at 2023-06-11 19:55:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flake8-bugbear (Old)
and /work/SRC/openSUSE:Factory/.python-flake8-bugbear.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8-bugbear"
Sun Jun 11 19:55:55 2023 rev:14 rq:1092178 version:23.6.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-flake8-bugbear/python-flake8-bugbear.changes
2023-05-18 15:19:56.734082335 +0200
+++
/work/SRC/openSUSE:Factory/.python-flake8-bugbear.new.15902/python-flake8-bugbear.changes
2023-06-11 19:58:36.872366122 +0200
@@ -1,0 +2,7 @@
+Sun Jun 11 09:17:36 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 23.6.5:
+ * Include tox.ini in MANIFEST.in for sdist.
+ * Improve B033 (duplicate set items)
+
+-------------------------------------------------------------------
Old:
----
flake8-bugbear-23.5.9.tar.gz
New:
----
flake8-bugbear-23.6.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flake8-bugbear.spec ++++++
--- /var/tmp/diff_new_pack.0jHzp2/_old 2023-06-11 19:58:38.112373600 +0200
+++ /var/tmp/diff_new_pack.0jHzp2/_new 2023-06-11 19:58:38.172373961 +0200
@@ -16,10 +16,9 @@
#
-%define skip_python2 1
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
Name: python-flake8-bugbear
-Version: 23.5.9
+Version: 23.6.5
Release: 0
Summary: A plugin for flake8 finding likely bugs and design problems in
your program
License: MIT
++++++ flake8-bugbear-23.5.9.tar.gz -> flake8-bugbear-23.6.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/MANIFEST.in
new/flake8-bugbear-23.6.5/MANIFEST.in
--- old/flake8-bugbear-23.5.9/MANIFEST.in 2023-05-10 01:57:52.000000000
+0200
+++ new/flake8-bugbear-23.6.5/MANIFEST.in 2023-06-05 18:20:41.000000000
+0200
@@ -1,2 +1,2 @@
-include *.rst LICENSE
+include *.rst LICENSE tox.ini
recursive-include tests *.txt *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/PKG-INFO
new/flake8-bugbear-23.6.5/PKG-INFO
--- old/flake8-bugbear-23.5.9/PKG-INFO 2023-05-10 01:58:06.916914000 +0200
+++ new/flake8-bugbear-23.6.5/PKG-INFO 2023-06-05 18:20:50.367162500 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: flake8-bugbear
-Version: 23.5.9
+Version: 23.6.5
Summary: A plugin for flake8 finding likely bugs and design problems in your
program. Contains warnings that don't belong in pyflakes and pycodestyle.
Author-email: Åukasz Langa <[email protected]>
License: MIT
@@ -358,6 +358,12 @@
Change Log
----------
+23.6.5
+~~~~~~
+
+* Include tox.ini in MANIFEST.in for sdist. (#389)
+* Improve B033 (duplicate set items) (#385)
+
23.5.9
~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/README.rst
new/flake8-bugbear-23.6.5/README.rst
--- old/flake8-bugbear-23.5.9/README.rst 2023-05-10 01:57:52.000000000
+0200
+++ new/flake8-bugbear-23.6.5/README.rst 2023-06-05 18:20:41.000000000
+0200
@@ -329,6 +329,12 @@
Change Log
----------
+23.6.5
+~~~~~~
+
+* Include tox.ini in MANIFEST.in for sdist. (#389)
+* Improve B033 (duplicate set items) (#385)
+
23.5.9
~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/bugbear.py
new/flake8-bugbear-23.6.5/bugbear.py
--- old/flake8-bugbear-23.5.9/bugbear.py 2023-05-10 01:57:52.000000000
+0200
+++ new/flake8-bugbear-23.6.5/bugbear.py 2023-06-05 18:20:41.000000000
+0200
@@ -13,7 +13,7 @@
import attr
import pycodestyle
-__version__ = "23.5.9"
+__version__ = "23.6.5"
LOG = logging.getLogger("flake8.bugbear")
CONTEXTFUL_NODES = (
@@ -1351,12 +1351,16 @@
self.errors.append(B032(node.lineno, node.col_offset))
def check_for_b033(self, node):
- constants = [
- item.value
- for item in filter(lambda x: isinstance(x, ast.Constant),
node.elts)
- ]
- if len(constants) != len(set(constants)):
- self.errors.append(B033(node.lineno, node.col_offset))
+ seen = set()
+ for elt in node.elts:
+ if not isinstance(elt, ast.Constant):
+ continue
+ if elt.value in seen:
+ self.errors.append(
+ B033(elt.lineno, elt.col_offset, vars=(repr(elt.value),))
+ )
+ else:
+ seen.add(elt.value)
def compose_call_path(node):
@@ -1757,8 +1761,8 @@
B033 = Error(
message=(
- "B033 Sets should not contain duplicate items. Duplicate items will be
replaced"
- " with a single item at runtime."
+ "B033 Set should not contain duplicate item {}. Duplicate items will
be"
+ " replaced with a single item at runtime."
)
)
@@ -1817,7 +1821,7 @@
)
B908 = Error(
message=(
- "B908 assertRaises-type context should not contains more than one
top-level"
+ "B908 assertRaises-type context should not contain more than one
top-level"
" statement."
)
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/flake8-bugbear-23.5.9/flake8_bugbear.egg-info/PKG-INFO
new/flake8-bugbear-23.6.5/flake8_bugbear.egg-info/PKG-INFO
--- old/flake8-bugbear-23.5.9/flake8_bugbear.egg-info/PKG-INFO 2023-05-10
01:58:06.000000000 +0200
+++ new/flake8-bugbear-23.6.5/flake8_bugbear.egg-info/PKG-INFO 2023-06-05
18:20:50.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: flake8-bugbear
-Version: 23.5.9
+Version: 23.6.5
Summary: A plugin for flake8 finding likely bugs and design problems in your
program. Contains warnings that don't belong in pyflakes and pycodestyle.
Author-email: Åukasz Langa <[email protected]>
License: MIT
@@ -358,6 +358,12 @@
Change Log
----------
+23.6.5
+~~~~~~
+
+* Include tox.ini in MANIFEST.in for sdist. (#389)
+* Improve B033 (duplicate set items) (#385)
+
23.5.9
~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/flake8-bugbear-23.5.9/flake8_bugbear.egg-info/SOURCES.txt
new/flake8-bugbear-23.6.5/flake8_bugbear.egg-info/SOURCES.txt
--- old/flake8-bugbear-23.5.9/flake8_bugbear.egg-info/SOURCES.txt
2023-05-10 01:58:06.000000000 +0200
+++ new/flake8-bugbear-23.6.5/flake8_bugbear.egg-info/SOURCES.txt
2023-06-05 18:20:50.000000000 +0200
@@ -5,6 +5,7 @@
pyproject.toml
setup.cfg
setup.py
+tox.ini
flake8_bugbear.egg-info/PKG-INFO
flake8_bugbear.egg-info/SOURCES.txt
flake8_bugbear.egg-info/dependency_links.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/tests/b033.py
new/flake8-bugbear-23.6.5/tests/b033.py
--- old/flake8-bugbear-23.5.9/tests/b033.py 2023-05-10 01:57:52.000000000
+0200
+++ new/flake8-bugbear-23.6.5/tests/b033.py 2023-06-05 18:20:41.000000000
+0200
@@ -1,6 +1,6 @@
"""
Should emit:
-B033 - on lines 6-12
+B033 - on lines 6-12, 16, 18
"""
test = {1, 2, 3, 3, 5}
@@ -10,6 +10,13 @@
test = {3, 3.0}
test = {1, True}
test = {0, False}
+multi_line = {
+ "alongvalueeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
+ 1,
+ True,
+ 0,
+ False,
+}
test = {1, 2, 3, 3.5, 5}
test = {"a", "b", "c", "d", "e"}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/tests/test_bugbear.py
new/flake8-bugbear-23.6.5/tests/test_bugbear.py
--- old/flake8-bugbear-23.5.9/tests/test_bugbear.py 2023-05-10
01:57:52.000000000 +0200
+++ new/flake8-bugbear-23.6.5/tests/test_bugbear.py 2023-06-05
18:20:41.000000000 +0200
@@ -493,13 +493,15 @@
bbc = BugBearChecker(filename=str(filename))
errors = list(bbc.run())
expected = self.errors(
- B033(6, 7),
- B033(7, 7),
- B033(8, 7),
- B033(9, 7),
- B033(10, 7),
- B033(11, 7),
- B033(12, 7),
+ B033(6, 17, vars=("3",)),
+ B033(7, 23, vars=("'c'",)),
+ B033(8, 21, vars=("True",)),
+ B033(9, 20, vars=("None",)),
+ B033(10, 11, vars=("3.0",)),
+ B033(11, 11, vars=("True",)),
+ B033(12, 11, vars=("False",)),
+ B033(16, 4, vars=("True",)),
+ B033(18, 4, vars=("False",)),
)
self.assertEqual(errors, expected)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flake8-bugbear-23.5.9/tox.ini
new/flake8-bugbear-23.6.5/tox.ini
--- old/flake8-bugbear-23.5.9/tox.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/flake8-bugbear-23.6.5/tox.ini 2023-06-05 18:20:41.000000000 +0200
@@ -0,0 +1,21 @@
+# The test environment and commands
+[tox]
+# default environments to run without `-e`
+envlist = py38, py39, py310, py311
+
+[gh-actions]
+python =
+ 3.8: py38
+ 3.9: py39
+ 3.10: py310
+ 3.11: py311
+
+[testenv:{py38, py39, py310, py311}]
+description = Run coverage
+deps =
+ coverage
+ hypothesis
+ hypothesmith
+commands =
+ coverage run tests/test_bugbear.py {posargs}
+ coverage report -m