Merge lp:~jelmer/brz/fix-flake8 into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 7630
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/fix-flake8
Merge into: lp:brz
Diff against target: 74 lines (+8/-8)
5 files modified
breezy/bzr/reconcile.py (+1/-1)
breezy/bzr/versionedfile.py (+2/-2)
breezy/tests/per_workingtree/test_workingtree.py (+1/-1)
breezy/textmerge.py (+3/-3)
byov.conf (+1/-1)
To merge this branch: bzr merge lp:~jelmer/brz/fix-flake8
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+429645@code.launchpad.net

Commit message

Fix flake8 with newer versions of flake8.

Description of the change

Fix flake8 with newer versions of flake8.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

The attempt to merge lp:~jelmer/brz/fix-flake8 into lp:brz failed. Below is the output from the failed tests.

python-junitxml (https://launchpad.net/pyjunitxml or http://pypi.python.org/pypi/junitxml) is required for this filter.Traceback (most recent call last):
  File "/usr/bin/subunit2junitxml", line 27, in <module>
    from junitxml import JUnitXmlResult
ModuleNotFoundError: No module named 'junitxml'

----------------------------------------------------------------------
Ran 0 tests in 0.026s

OK
brz: warning: some compiled extensions could not be loaded; see ``brz help missing-extensions``
make: Circular doc/en/Makefile <- doc/en/Makefile dependency dropped.

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

No approved revision specified.

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

No approved revision specified.

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

No approved revision specified.

Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'breezy/bzr/reconcile.py'
--- breezy/bzr/reconcile.py 2020-02-18 01:57:45 +0000
+++ breezy/bzr/reconcile.py 2022-09-08 17:24:55 +0000
@@ -261,7 +261,7 @@
261 new_inventories.insert_record_stream(stream)261 new_inventories.insert_record_stream(stream)
262 # if this worked, the set of new_inventory_vf.names should equal262 # if this worked, the set of new_inventory_vf.names should equal
263 # the revisionds list263 # the revisionds list
264 if not(set(new_inventories.keys()) == set(revision_keys)):264 if set(new_inventories.keys()) != set(revision_keys):
265 raise AssertionError()265 raise AssertionError()
266 self.pb.update(gettext('Writing weave'))266 self.pb.update(gettext('Writing weave'))
267 self.repo._activate_new_inventory()267 self.repo._activate_new_inventory()
268268
=== modified file 'breezy/bzr/versionedfile.py'
--- breezy/bzr/versionedfile.py 2022-08-22 18:19:46 +0000
+++ breezy/bzr/versionedfile.py 2022-09-08 17:24:55 +0000
@@ -1702,11 +1702,11 @@
1702 return1702 return
1703 elif ch_a and not ch_b:1703 elif ch_a and not ch_b:
1704 # one-sided change:1704 # one-sided change:
1705 yield(lines_a,)1705 yield (lines_a,)
1706 elif ch_b and not ch_a:1706 elif ch_b and not ch_a:
1707 yield (lines_b,)1707 yield (lines_b,)
1708 elif lines_a == lines_b:1708 elif lines_a == lines_b:
1709 yield(lines_a,)1709 yield (lines_a,)
1710 else:1710 else:
1711 yield (lines_a, lines_b)1711 yield (lines_a, lines_b)
17121712
17131713
=== modified file 'breezy/tests/per_workingtree/test_workingtree.py'
--- breezy/tests/per_workingtree/test_workingtree.py 2022-08-22 18:19:46 +0000
+++ breezy/tests/per_workingtree/test_workingtree.py 2022-09-08 17:24:55 +0000
@@ -33,7 +33,7 @@
33 transport as _mod_transport,33 transport as _mod_transport,
34 urlutils,34 urlutils,
35 )35 )
36from...bzr import (36from ...bzr import (
37 bzrdir,37 bzrdir,
38 )38 )
39from ...errors import (39from ...errors import (
4040
=== modified file 'breezy/textmerge.py'
--- breezy/textmerge.py 2022-07-02 13:44:01 +0000
+++ breezy/textmerge.py 2022-09-08 17:24:55 +0000
@@ -136,10 +136,10 @@
136 pos_b = 0136 pos_b = 0
137 for ai, bi, l in sm.get_matching_blocks():137 for ai, bi, l in sm.get_matching_blocks():
138 # non-matching lines138 # non-matching lines
139 yield(self.lines_a[pos_a:ai], self.lines_b[pos_b:bi])139 yield (self.lines_a[pos_a:ai], self.lines_b[pos_b:bi])
140 # matching lines140 # matching lines
141 yield(self.lines_a[ai:ai + l],)141 yield (self.lines_a[ai:ai + l],)
142 pos_a = ai + l142 pos_a = ai + l
143 pos_b = bi + l143 pos_b = bi + l
144 # final non-matching lines144 # final non-matching lines
145 yield(self.lines_a[pos_a:-1], self.lines_b[pos_b:-1])145 yield (self.lines_a[pos_a:-1], self.lines_b[pos_b:-1])
146146
=== modified file 'byov.conf'
--- byov.conf 2022-07-09 14:29:29 +0000
+++ byov.conf 2022-09-08 17:24:55 +0000
@@ -22,7 +22,7 @@
22vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-junitxml22vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-junitxml
23[brz-xenial]23[brz-xenial]
24vm.release = bionic24vm.release = bionic
25byoci.setup.command = (pip3 install --upgrade pip && pip3 install --upgrade cython setuptools-rust sphinx paramiko merge3 && {subunit.clone} && {flake8.install3} && PATH="$HOME/.local/bin:$PATH" python3 setup.py develop --user && pip3 install -e '.[{brz.extras}]')25byoci.setup.command = (pip3 install --upgrade pip && pip3 install --upgrade "pyopenssl>=0.22" cython setuptools-rust sphinx paramiko merge3 && {subunit.clone} && {flake8.install3} && PATH="$HOME/.local/bin:$PATH" python3 setup.py develop --user && pip3 install -e '.[{brz.extras}]')
26# FIXME: bzr log -l2 should be by default -- vila 2018-03-0926# FIXME: bzr log -l2 should be by default -- vila 2018-03-09
27byoci.tests.command = bash -o pipefail -c "bzr log -l2 && PYTHONPATH=tools:$PYTHONPATH python3 -m flake8 && PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit"27byoci.tests.command = bash -o pipefail -c "bzr log -l2 && PYTHONPATH=tools:$PYTHONPATH python3 -m flake8 && PYTHONPATH=../subunit/python:$PYTHONPATH PATH=../subunit/filters:$HOME/.local/bin:$PATH make check-ci | subunit2junitxml -o ../results.xml -f | subunit2pyunit"
28[brz-cosmic]28[brz-cosmic]

Subscribers

People subscribed via source and target branches