Skip to content

Commit

Permalink
fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ponty committed Jan 18, 2022
1 parent d8c04dd commit 7682f11
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/generate-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ def main():
embedme.call()
print(embedme.stdout)
assert embedme.return_code == 0
assert not "but file does not exist" in embedme.stdout
assert "but file does not exist" not in embedme.stdout
3 changes: 2 additions & 1 deletion lint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
python3 -m flake8 . --max-complexity=10 --max-line-length=127 --extend-ignore=E203
# TODO: max-complexity=10
python3 -m flake8 . --max-complexity=11 --max-line-length=127 --extend-ignore=E203
python3 -m mypy "pyvirtualdisplay"
4 changes: 3 additions & 1 deletion pyvirtualdisplay/xvnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def __init__(
):
"""
:param bgcolor: 'black' or 'white'
:param rfbport: Specifies the TCP port on which Xvnc listens for connections from viewers (the protocol used in VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number.
:param rfbport: Specifies the TCP port on which Xvnc listens for connections from viewers
(the protocol used in VNC is called RFB - "remote framebuffer").
The default is 5900 plus the display number.
:param rfbauth: Specifies the file containing the password used to authenticate viewers.
"""
self._size = size
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pytest
pillow
types-pillow
entrypoint2
vncdotool==0.13.0
psutil
Expand Down
4 changes: 2 additions & 2 deletions tests/test_smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_slowshot_timeout():
with disp:
with proc:
with pytest.raises(DisplayTimeoutError):
img = disp.waitgrab(timeout=1)
disp.waitgrab(timeout=1)


def test_slowshot_timeout_nocrop():
Expand All @@ -85,4 +85,4 @@ def test_slowshot_timeout_nocrop():
with disp:
with proc:
with pytest.raises(DisplayTimeoutError):
img = disp.waitgrab(timeout=1, autocrop=False)
disp.waitgrab(timeout=1, autocrop=False)

0 comments on commit 7682f11

Please sign in to comment.