mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 08:43:54 +08:00
More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors * fix more alerts, exclude mkvparse Co-authored-by: George Hotz <geohot@gmail.com> old-commit-hash: e568d3cadc71d2b301fcb46af9afb3c8c8005f72
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
import struct
|
||||
from common.numpy_fast import clip
|
||||
from common.params import Params
|
||||
from copy import copy
|
||||
|
||||
@@ -7,10 +7,8 @@
|
||||
### this process needs pygame and can't run on the EON ###
|
||||
|
||||
import pygame
|
||||
import zmq
|
||||
import cereal.messaging as messaging
|
||||
|
||||
|
||||
def joystick_thread():
|
||||
joystick_sock = messaging.pub_sock('testJoystick')
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
import os
|
||||
import requests
|
||||
from tools.lib.auth_config import clear_token
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import webbrowser
|
||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
from urllib.parse import urlencode, parse_qs
|
||||
from common.file_helpers import mkdirs_exists_ok
|
||||
from tools.lib.api import CommaApi, APIError
|
||||
from tools.lib.auth_config import set_token
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import glob
|
||||
import json
|
||||
import time
|
||||
import struct
|
||||
import tempfile
|
||||
import threading
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import bz2
|
||||
import tempfile
|
||||
import subprocess
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
from tools.lib.route import Route
|
||||
@@ -11,4 +10,4 @@ data_dump = {
|
||||
"logs":routes.log_paths()
|
||||
}
|
||||
|
||||
json.dump(data_dump, open("routes.json", "w"))
|
||||
json.dump(data_dump, open("routes.json", "w"))
|
||||
|
||||
@@ -10,7 +10,6 @@ import pygame
|
||||
import numpy as np
|
||||
import cv2
|
||||
import sys
|
||||
from tools.lib.lazy_property import lazy_property
|
||||
import cereal.messaging as messaging
|
||||
|
||||
_BB_OFFSET = 0, 0
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import cereal.messaging as messaging
|
||||
import time
|
||||
|
||||
|
||||
# tool to plot one or more signals live. Call ex:
|
||||
#./rqplot.py log.carState.vEgo log.carState.aEgo
|
||||
|
||||
|
||||
@@ -4,10 +4,7 @@ import os
|
||||
import sys
|
||||
import zmq
|
||||
import time
|
||||
import gc
|
||||
import signal
|
||||
from threading import Thread
|
||||
import numpy as np
|
||||
from uuid import uuid4
|
||||
from collections import namedtuple
|
||||
from collections import deque
|
||||
@@ -22,7 +19,6 @@ from cereal.services import service_list
|
||||
from cereal.messaging import pub_sock, MultiplePublishersError
|
||||
from common import realtime
|
||||
|
||||
from tools.lib.file_helpers import mkdirs_exists_ok
|
||||
from tools.lib.kbhit import KBHit
|
||||
from tools.lib.logreader import MultiLogIterator
|
||||
from tools.lib.route import Route
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import zmq
|
||||
import json
|
||||
import cv2
|
||||
import numpy as np
|
||||
from hexdump import hexdump
|
||||
import scipy.misc
|
||||
import struct
|
||||
from collections import deque
|
||||
|
||||
# sudo pip install git+git://github.com/mikeboers/PyAV.git
|
||||
import av
|
||||
|
||||
Reference in New Issue
Block a user