mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
Fix pycodestyle (pep8) errors
This commit is contained in:
@@ -8,8 +8,8 @@ python:
|
|||||||
- "3.7-dev"
|
- "3.7-dev"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install pep8
|
- pip install pycodestyle
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- find . -name \*.py -exec pep8 --ignore=E501 {} +
|
- find . -name \*.py -exec pycodestyle --ignore=E501,E402 {} +
|
||||||
- make test
|
- make test
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Player:
|
|||||||
stdin = open('/dev/tty')
|
stdin = open('/dev/tty')
|
||||||
with raw(stdin.fileno()):
|
with raw(stdin.fileno()):
|
||||||
self._play(asciicast, idle_time_limit, speed, stdin)
|
self._play(asciicast, idle_time_limit, speed, stdin)
|
||||||
except:
|
except Exception:
|
||||||
self._play(asciicast, idle_time_limit, speed, None)
|
self._play(asciicast, idle_time_limit, speed, None)
|
||||||
|
|
||||||
def _play(self, asciicast, idle_time_limit, speed, stdin):
|
def _play(self, asciicast, idle_time_limit, speed, stdin):
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ def test_upgrade_no_config_file():
|
|||||||
config.upgrade()
|
config.upgrade()
|
||||||
install_id = read_install_id(config.install_id_path)
|
install_id = read_install_id(config.install_id_path)
|
||||||
|
|
||||||
assert re.match('^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}', install_id)
|
assert re.match('^\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}', install_id)
|
||||||
assert_equal(install_id, config.install_id)
|
assert_equal(install_id, config.install_id)
|
||||||
assert not path.exists(config.config_file_path)
|
assert not path.exists(config.config_file_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user