Skip to content

Commit

Permalink
run ruff format on files which failed CI style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stspdotname committed May 29, 2024
1 parent cd4e699 commit b572358
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 83 deletions.
30 changes: 21 additions & 9 deletions dulwich/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,17 @@ def run(self, args):
help=("Check out branch instead of branch pointed to by remote " "HEAD"),
)
parser.add_option(
"--refspec", dest="refspec", type=str, help="References to fetch", action="append"
"--refspec",
dest="refspec",
type=str,
help="References to fetch",
action="append",
)
parser.add_option(
"--filter", dest="filter_spec", type=str, help="git-rev-list-style object filter"
"--filter",
dest="filter_spec",
type=str,
help="git-rev-list-style object filter",
)
parser.add_option(
"--protocol", dest="protocol", type=int, help="Git protocol version to use"
Expand All @@ -293,7 +300,7 @@ def run(self, args):
branch=options.branch,
refspecs=options.refspec,
filter_spec=options.filter_spec,
protocol_version=options.protocol
protocol_version=options.protocol,
)
except GitProtocolError as e:
print(f"{e}")
Expand Down Expand Up @@ -599,13 +606,18 @@ def run(self, args):
class cmd_pull(Command):
def run(self, args):
parser = argparse.ArgumentParser()
parser.add_argument('from_location', type=str)
parser.add_argument('refspec', type=str, nargs='*')
parser.add_argument('--filter', type=str, nargs=1)
parser.add_argument('--protocol', type=int, nargs=1)
parser.add_argument("from_location", type=str)
parser.add_argument("refspec", type=str, nargs="*")
parser.add_argument("--filter", type=str, nargs=1)
parser.add_argument("--protocol", type=int, nargs=1)
args = parser.parse_args(args)
porcelain.pull(".", args.from_location or None, args.refspec or None,
filter_spec=args.filter, protocol_version=args.protocol_version or None)
porcelain.pull(
".",
args.from_location or None,
args.refspec or None,
filter_spec=args.filter,
protocol_version=args.protocol_version or None,
)


class cmd_push(Command):
Expand Down
Loading

0 comments on commit b572358

Please sign in to comment.