mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-01 12:41:32 +08:00
Enable more flake8 checks (#1602)
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
old-commit-hash: d9bf9f0a40
This commit is contained in:
@@ -20,6 +20,7 @@ class Analyzer(ast.NodeVisitor):
|
||||
for alias in node.names:
|
||||
imps.add(alias.name)
|
||||
self.generic_visit(node)
|
||||
|
||||
def visit_ImportFrom(self, node):
|
||||
imps.add(node.module)
|
||||
self.generic_visit(node)
|
||||
@@ -38,4 +39,3 @@ for f in sorted(pyf):
|
||||
|
||||
print("%d lines of parsed openpilot python" % tlns)
|
||||
#print(sorted(list(imps)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user