style: set flake8's max-line-length=88

In accordance with black's defined style, we now expect a maximum
of 88 columns for any one particular line.

This change fixes remaining violations of 88 columns in the codebase
(not many), and introduces the modified flake8 configuration.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-08-22 23:44:56 -07:00
parent ce5dbf0eeb
commit 57c0409958
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 11 additions and 4 deletions

View file

@ -233,7 +233,8 @@ for p in list(seen_pkgs.keys()):
s = ( s = (
"INSERT INTO PackageBases (ID, Name, FlaggerComment, SubmittedTS, ModifiedTS, " "INSERT INTO PackageBases (ID, Name, FlaggerComment, SubmittedTS, ModifiedTS, "
"SubmitterUID, MaintainerUID, PackagerUID) VALUES (%d, '%s', '', %d, %d, %d, %s, %s);\n" "SubmitterUID, MaintainerUID, PackagerUID) VALUES "
"(%d, '%s', '', %d, %d, %d, %s, %s);\n"
) )
s = s % (seen_pkgs[p], p, NOW, NOW, uuid, muid, puid) s = s % (seen_pkgs[p], p, NOW, NOW, uuid, muid, puid)
out.write(s) out.write(s)
@ -303,7 +304,10 @@ for p in seen_pkgs_keys:
deptype = random.randrange(1, 5) deptype = random.randrange(1, 5)
if deptype == 4: if deptype == 4:
dep += ": for " + random.choice(seen_pkgs_keys) dep += ": for " + random.choice(seen_pkgs_keys)
s = "INSERT INTO PackageDepends(PackageID, DepTypeID, DepName) VALUES (%d, %d, '%s');\n" s = (
"INSERT INTO PackageDepends(PackageID, DepTypeID, DepName) "
"VALUES (%d, %d, '%s');\n"
)
s = s % (seen_pkgs[p], deptype, dep) s = s % (seen_pkgs[p], deptype, dep)
out.write(s) out.write(s)
@ -311,7 +315,10 @@ for p in seen_pkgs_keys:
for i in range(0, num_deps): for i in range(0, num_deps):
rel = random.choice(seen_pkgs_keys) rel = random.choice(seen_pkgs_keys)
reltype = random.randrange(1, 4) reltype = random.randrange(1, 4)
s = "INSERT INTO PackageRelations(PackageID, RelTypeID, RelName) VALUES (%d, %d, '%s');\n" s = (
"INSERT INTO PackageRelations(PackageID, RelTypeID, RelName) "
"VALUES (%d, %d, '%s');\n"
)
s = s % (seen_pkgs[p], reltype, rel) s = s % (seen_pkgs[p], reltype, rel)
out.write(s) out.write(s)

View file

@ -1,5 +1,5 @@
[flake8] [flake8]
max-line-length = 127 max-line-length = 88
max-complexity = 10 max-complexity = 10
# Ignore some unavoidable flake8 warnings; we know this is against # Ignore some unavoidable flake8 warnings; we know this is against