lint
This commit is contained in:
parent
ebfff8db76
commit
e77f375186
|
@ -52,7 +52,6 @@ matrix:
|
|||
- wget https://github.com/gohugoio/hugo/releases/download/v0.41/hugo_0.41_Linux-64bit.deb
|
||||
- sudo dpkg -i hugo*.deb
|
||||
- pip install tox virtualenv setuptools
|
||||
- pyenv global system 3.6
|
||||
script:
|
||||
- tox
|
||||
after_success:
|
||||
|
|
|
@ -37,7 +37,7 @@ class View:
|
|||
|
||||
def format_pairs(
|
||||
items: typing.Iterable[typing.Tuple[TTextType, TTextType]]
|
||||
)-> typing.Iterator[TViewLine]:
|
||||
) -> typing.Iterator[TViewLine]:
|
||||
|
||||
"""
|
||||
Helper function that accepts a list of (k,v) pairs into a list of
|
||||
|
|
|
@ -54,7 +54,7 @@ def parse_gif(data: bytes) -> Metadata:
|
|||
entries = block.body.body.entries
|
||||
for entry in entries:
|
||||
comment = entry.bytes
|
||||
if comment is not b'':
|
||||
if comment != b'':
|
||||
parts.append(('comment', str(comment)))
|
||||
return parts
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -88,7 +88,7 @@ setup(
|
|||
],
|
||||
'dev': [
|
||||
"asynctest>=0.12.0",
|
||||
"flake8>=3.5,<3.7",
|
||||
"flake8>=3.5,<=3.7.8",
|
||||
"Flask>=1.0,<1.1",
|
||||
"mypy>=0.590,<0.591",
|
||||
"parver>=0.1,<2.0",
|
||||
|
|
|
@ -471,7 +471,7 @@ def test_focus():
|
|||
v = view.View()
|
||||
v.add([tft()])
|
||||
f = view.Focus(v)
|
||||
assert f.index is 0
|
||||
assert f.index == 0
|
||||
assert f.flow is v[0]
|
||||
|
||||
# Start empty
|
||||
|
|
Loading…
Reference in New Issue