python: fix flake8 warnings and format with black
Most of the flake8 warnings in this repository were fairly trivial,
so fixed them. The "openbmctool" is 7000+ lines of pretty heavily
warned code, so just disabling that one. Format everything with
black.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Icb3f6ee9bf03dece58785f7af00617c87a84aa65
diff --git a/tof-voters/libvoters/entry_point.py b/tof-voters/libvoters/entry_point.py
index 1dd50c3..a6cc1ea 100644
--- a/tof-voters/libvoters/entry_point.py
+++ b/tof-voters/libvoters/entry_point.py
@@ -2,7 +2,7 @@
import argparse
from importlib import import_module
-from typing import List
+
def main() -> int:
parser = argparse.ArgumentParser(description="Obtain TOF voter metrics")
@@ -22,7 +22,7 @@
import_module("libvoters.subcmd.dump-gerrit"),
import_module("libvoters.subcmd.report"),
]
- commands = [x.subcmd(subparser) for x in commands] # type: ignore
+ commands = [x.subcmd(subparser) for x in commands] # type: ignore
args = parser.parse_args()