Skip to content

Commit

Permalink
Fix flake8 config and error
Browse files Browse the repository at this point in the history
Fix flake8 invocation
Fix E275 in mopidy_waitforinternet/__init__.py
  • Loading branch information
DavisNT committed Aug 4, 2022
1 parent 379119a commit 6d4312d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mopidy_waitforinternet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def wait_for_internet(wait_for_timesync, logger):
if wait_for_timesync:
if extramsg == '':
extramsg = ', initial time offset: %ds' % timediff
assert(abs(timediff) < 10)
assert abs(timediff) < 10
extramsg += ', time offset: %ds' % timediff
except Exception:
if wait_for_timesync:
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ commands = coverage run --source=mopidy_waitforinternet,mopidy_waitfortimesync -
deps =
flake8
flake8-import-order
commands = flake8

[flake8]
ignore = E501
commands = flake8 --ignore=E121,E123,E126,E226,E24,E704,E501

[testenv:serverstest]
commands = pytest -v --basetemp={envtmpdir} tests/test_connectivity_check_servers.py
Expand Down

0 comments on commit 6d4312d

Please sign in to comment.