flake8 in pre-commit(#1583)

This commit is contained in:
Willem Melching
2020-05-27 20:33:05 -07:00
committed by GitHub
parent bd06434243
commit 29aaa44740
18 changed files with 34 additions and 41 deletions
-1
View File
@@ -79,7 +79,6 @@ def go(q):
threading.Thread(target=health_function).start()
threading.Thread(target=fake_driver_monitoring).start()
import carla # pylint: disable=import-error
client = carla.Client("127.0.0.1", 2000)
client.set_timeout(5.0)
world = client.load_world('Town04')
+3 -3
View File
@@ -1,7 +1,8 @@
import time
import sys
import termios
from termios import *
import time
from termios import (BRKINT, VMIN, CS8, CSIZE, ECHO, ICANON, ICRNL, IEXTEN,
INPCK, ISIG, ISTRIP, IXON, PARENB, VTIME)
# Indexes for termios list.
IFLAG = 0
@@ -58,4 +59,3 @@ if __name__ == '__main__':
p.start()
keyboard_poll_thread(q)
+1 -1
View File
@@ -133,7 +133,7 @@ def wheel_poll_thread(q):
# Enable FF
import evdev # pylint: disable=import-error
from evdev import ecodes, InputDevice, ff # pylint: disable=import-error
from evdev import ecodes, InputDevice # pylint: disable=import-error
device = evdev.list_devices()[0]
evtdev = InputDevice(device)
val = 24000