mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
ce5dbf0eeb
commit
57c0409958
2 changed files with 11 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[flake8]
|
||||
max-line-length = 127
|
||||
max-line-length = 88
|
||||
max-complexity = 10
|
||||
|
||||
# Ignore some unavoidable flake8 warnings; we know this is against
|
||||
|
|
Loading…
Add table
Reference in a new issue