Autoformat python to fix lint errors (#1470)

* Autoformat python to fix lint errors

* Fix lint errors not caught by black
This commit is contained in:
Matt Weiden
2020-05-12 13:19:38 -07:00
committed by GitHub
parent e55595cc55
commit 730410c5e1
10 changed files with 50 additions and 55 deletions
+3 -9
View File
@@ -29,16 +29,12 @@ def check(expected, custom):
# cdict must only have exact requirements (==)
for cname, cspecs in cdict.items():
if len(cspecs) != 1 or cspecs[0][0] != "==":
print(
f"Error, spec must be an exact requirement {custom}: {cname} {str(cspecs)}"
)
print(f"Error, spec must be an exact requirement {custom}: {cname} {str(cspecs)}")
okay = False
for ename, especs in edict.items():
if ename not in cdict:
print(
f"Error, missing requirement from {custom}: {ename} {str(especs)}"
)
print(f"Error, missing requirement from {custom}: {ename} {str(especs)}")
okay = False
continue
@@ -46,9 +42,7 @@ def check(expected, custom):
for espec in especs:
rokay = check_version(cver, espec[0], Version(espec[1]))
if not rokay:
print(
f"Error, failed requirement from {custom}: {ename} {espec}, {cver}"
)
print(f"Error, failed requirement from {custom}: {ename} {espec}, {cver}")
okay = False
if okay: