chore: Fix PEP8: E501 line too long

This commit is contained in:
txtsd 2022-04-06 15:07:23 +05:30
parent 8ad8ed95cb
commit f5ca1a18f7
No known key found for this signature in database
GPG Key ID: 000F85679D4B6B53
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,6 @@ def should_ignore_artifact(libs: Collection[GradleSpecifier], match: GradleSpeci
# Everything is matched perfectly - this one will be ignored
return True
elif LooseVersion(ver.version) > LooseVersion(match.version):
# eprint ("Lower version on %s:%s:%s: OLD=%s NEW=%s" % (ver.group, ver.artifact, ver.classifier, ver.version, match.version))
return True
else:
# Otherwise it did not match - new version is higher and this is an upgrade

View File

@ -138,9 +138,11 @@ def main():
newIndex = DerivedForgeIndex()
# FIXME: does not fully validate that the file has not changed format
# NOTE: For some insane reason, the format of the versions here is special. It having a branch at the end means it affects that particular branch
# NOTE: For some insane reason, the format of the versions here is special. It having a branch at the end means it
# affects that particular branch.
# We don't care about Forge having branches.
# Therefore we only use the short version part for later identification and filter out the branch-specific promotions (among other errors).
# Therefore we only use the short version part for later identification and filter out the branch-specific
# promotions (among other errors).
print("Processing promotions:")
for promoKey, shortversion in promotions_json.get('promos').items():
match = promotedKeyExpression.match(promoKey)