Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore =
E501, # line too long
W504 # line break after binary operator
# E501: line too long
# W504: line break after binary operator
ignore = E501,W504
exclude = ./third_party ./out
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v1
- name: install tools
run: |
pip3 install flake8==3.7.8
pip3 install flake8==7.3.0
sudo apt-get install clang-format
- run: flake8
- run: ./scripts/clang-format-diff.sh
Expand Down
4 changes: 2 additions & 2 deletions test/gen-spec-js.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def _NanBitmask(self, canonical, type_):
# When checking for canonical NaNs, the value can differ only in the sign
# bit from +nan. For arithmetic NaNs, the sign bit and the rest of the tag
# can differ as well.
assert(type_ in ('f32', 'f64'))
assert type_ in ('f32', 'f64')
if not canonical:
return self._QuietNan(type_)

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

def _QuietNan(self, type_):
assert(type_ in ('f32', 'f64'))
assert type_ in ('f32', 'f64')
if type_ == 'f32':
line = 'i32.const 0x%x' % F32_QUIET_NAN
else:
Expand Down
6 changes: 3 additions & 3 deletions test/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class NoRoundtripError(Error):


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


def DiffLines(expected, actual):
Expand Down Expand Up @@ -676,7 +676,7 @@ def Done(self):
sys.stderr.write('\n')

def _PrintShortStatus(self, info):
assert(self.isatty)
assert self.isatty
total_duration = time.time() - self.start_time
name = info.GetName() if info else ''
if self.total - self.skipped:
Expand All @@ -691,7 +691,7 @@ def _PrintShortStatus(self, info):
sys.stderr.flush()

def _Clear(self):
assert(self.isatty)
assert self.isatty
sys.stderr.write('\r%s\r' % (' ' * self.last_length))


Expand Down
Loading