Skip to content

Commit 9cf4a0b

Browse files
authored
Update flake8 version. NFC (#2653)
1 parent 1f454c3 commit 9cf4a0b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.flake8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore =
3-
E501, # line too long
4-
W504 # line break after binary operator
2+
# E501: line too long
3+
# W504: line break after binary operator
4+
ignore = E501,W504
55
exclude = ./third_party ./out

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v1
2020
- name: install tools
2121
run: |
22-
pip3 install flake8==3.7.8
22+
pip3 install flake8==7.3.0
2323
sudo apt-get install clang-format
2424
- run: flake8
2525
- run: ./scripts/clang-format-diff.sh

test/gen-spec-js.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def _NanBitmask(self, canonical, type_):
318318
# When checking for canonical NaNs, the value can differ only in the sign
319319
# bit from +nan. For arithmetic NaNs, the sign bit and the rest of the tag
320320
# can differ as well.
321-
assert(type_ in ('f32', 'f64'))
321+
assert type_ in ('f32', 'f64')
322322
if not canonical:
323323
return self._QuietNan(type_)
324324

@@ -329,7 +329,7 @@ def _NanBitmask(self, canonical, type_):
329329
self.lines.append(line)
330330

331331
def _QuietNan(self, type_):
332-
assert(type_ in ('f32', 'f64'))
332+
assert type_ in ('f32', 'f64')
333333
if type_ == 'f32':
334334
line = 'i32.const 0x%x' % F32_QUIET_NAN
335335
else:

test/run-tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class NoRoundtripError(Error):
168168

169169

170170
def Indent(s, spaces):
171-
return ''.join(' ' * spaces + l for l in s.splitlines(1))
171+
return ''.join(' ' * spaces + line for line in s.splitlines(1))
172172

173173

174174
def DiffLines(expected, actual):
@@ -676,7 +676,7 @@ def Done(self):
676676
sys.stderr.write('\n')
677677

678678
def _PrintShortStatus(self, info):
679-
assert(self.isatty)
679+
assert self.isatty
680680
total_duration = time.time() - self.start_time
681681
name = info.GetName() if info else ''
682682
if self.total - self.skipped:
@@ -691,7 +691,7 @@ def _PrintShortStatus(self, info):
691691
sys.stderr.flush()
692692

693693
def _Clear(self):
694-
assert(self.isatty)
694+
assert self.isatty
695695
sys.stderr.write('\r%s\r' % (' ' * self.last_length))
696696

697697

0 commit comments

Comments
 (0)