Skip to content
Snippets Groups Projects
Verified Commit 57c04099 authored by Kevin Morris's avatar Kevin Morris
Browse files

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's avatarKevin Morris <kevr@0cost.org>
parent ce5dbf0e
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,8 @@ for p in list(seen_pkgs.keys()):
s = (
"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)
out.write(s)
......@@ -303,7 +304,10 @@ for p in seen_pkgs_keys:
deptype = random.randrange(1, 5)
if deptype == 4:
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)
out.write(s)
......@@ -311,7 +315,10 @@ for p in seen_pkgs_keys:
for i in range(0, num_deps):
rel = random.choice(seen_pkgs_keys)
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)
out.write(s)
......
[flake8]
max-line-length = 127
max-line-length = 88
max-complexity = 10
# Ignore some unavoidable flake8 warnings; we know this is against
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment