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
1=== modified file 'breezy/bzr/reconcile.py'
2--- breezy/bzr/reconcile.py 2020-02-18 01:57:45 +0000
3+++ breezy/bzr/reconcile.py 2022-09-08 17:24:55 +0000
4@@ -261,7 +261,7 @@
5 new_inventories.insert_record_stream(stream)
6 # if this worked, the set of new_inventory_vf.names should equal
7 # the revisionds list
8- if not(set(new_inventories.keys()) == set(revision_keys)):
9+ if set(new_inventories.keys()) != set(revision_keys):
10 raise AssertionError()
11 self.pb.update(gettext('Writing weave'))
12 self.repo._activate_new_inventory()
13
14=== modified file 'breezy/bzr/versionedfile.py'
15--- breezy/bzr/versionedfile.py 2022-08-22 18:19:46 +0000
16+++ breezy/bzr/versionedfile.py 2022-09-08 17:24:55 +0000
17@@ -1702,11 +1702,11 @@
18 return
19 elif ch_a and not ch_b:
20 # one-sided change:
21- yield(lines_a,)
22+ yield (lines_a,)
23 elif ch_b and not ch_a:
24 yield (lines_b,)
25 elif lines_a == lines_b:
26- yield(lines_a,)
27+ yield (lines_a,)
28 else:
29 yield (lines_a, lines_b)
30
31
32=== modified file 'breezy/tests/per_workingtree/test_workingtree.py'
33--- breezy/tests/per_workingtree/test_workingtree.py 2022-08-22 18:19:46 +0000
34+++ breezy/tests/per_workingtree/test_workingtree.py 2022-09-08 17:24:55 +0000
35@@ -33,7 +33,7 @@
36 transport as _mod_transport,
37 urlutils,
38 )
39-from...bzr import (
40+from ...bzr import (
41 bzrdir,
42 )
43 from ...errors import (
44
45=== modified file 'breezy/textmerge.py'
46--- breezy/textmerge.py 2022-07-02 13:44:01 +0000
47+++ breezy/textmerge.py 2022-09-08 17:24:55 +0000
48@@ -136,10 +136,10 @@
49 pos_b = 0
50 for ai, bi, l in sm.get_matching_blocks():
51 # non-matching lines
52- yield(self.lines_a[pos_a:ai], self.lines_b[pos_b:bi])
53+ yield (self.lines_a[pos_a:ai], self.lines_b[pos_b:bi])
54 # matching lines
55- yield(self.lines_a[ai:ai + l],)
56+ yield (self.lines_a[ai:ai + l],)
57 pos_a = ai + l
58 pos_b = bi + l
59 # final non-matching lines
60- yield(self.lines_a[pos_a:-1], self.lines_b[pos_b:-1])
61+ yield (self.lines_a[pos_a:-1], self.lines_b[pos_b:-1])
62
63=== modified file 'byov.conf'
64--- byov.conf 2022-07-09 14:29:29 +0000
65+++ byov.conf 2022-09-08 17:24:55 +0000
66@@ -22,7 +22,7 @@
67 vm.packages = {brz.build_deps}, {subunit.build_deps}, bzr, git, python-junitxml
68 [brz-xenial]
69 vm.release = bionic
70-byoci.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}]')
71+byoci.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}]')
72 # FIXME: bzr log -l2 should be by default -- vila 2018-03-09
73 byoci.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"
74 [brz-cosmic]

Subscribers

People subscribed via source and target branches