From d585cbc9fad7ae2fc6ce2fdde8c365010bf0bae2 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Aug 08 2022 00:11:09 +0000 Subject: Format with black --- diff --git a/go2rpm/__main__.py b/go2rpm/__main__.py index 63748d6..af40fd6 100644 --- a/go2rpm/__main__.py +++ b/go2rpm/__main__.py @@ -491,7 +491,7 @@ def main(): "--rpmautospec", action="store_true", default=True, - help="Use autorelease and autochangelog features" + help="Use autorelease and autochangelog features", ) parser.add_argument( "--no-auto-changelog-entry", @@ -536,10 +536,17 @@ def main(): parser.add_argument( "-c", "--commit", action="store", nargs="?", help="Package commit" ) - parser.add_argument("--dynamic-buildrequires", action="store_true", - help="Use dynamic BuildRequires feature") - parser.add_argument("-R", "--no-dynamic-buildrequires", action="store_true", - help="Do not use dynamic BuildRequires feature") + parser.add_argument( + "--dynamic-buildrequires", + action="store_true", + help="Use dynamic BuildRequires feature", + ) + parser.add_argument( + "-R", + "--no-dynamic-buildrequires", + action="store_true", + help="Do not use dynamic BuildRequires feature", + ) parser.add_argument( "-C", "--clean", @@ -556,7 +563,13 @@ def main(): goipath = re.sub(r"^http(s?)://", r"", args.goipath) goipath = goipath.strip("/") - known_forge = ("github.com", "gitlab.com", "bitbucket.org", "pagure.io", "gitea.com") + known_forge = ( + "github.com", + "gitlab.com", + "bitbucket.org", + "pagure.io", + "gitea.com", + ) known_forge_re = r"^(" + r"|".join(re.escape(url) for url in known_forge) + r")" if not re.search(known_forge_re, goipath) and args.forge is None: print( @@ -606,7 +619,9 @@ def main(): set(buildrequires) ) ) - test_buildrequires = [ipath for ipath in test_buildrequires if goipath not in ipath] + test_buildrequires = [ + ipath for ipath in test_buildrequires if goipath not in ipath + ] else: args.dynamic_buildrequires = True buildrequires = []