Skip to content

Commit

Permalink
fix: code
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Oct 4, 2023
1 parent 022a4a2 commit 4f9a2b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions muffin/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


class Manager:

"""Provide simple interface to make application's commands.
::
Expand Down Expand Up @@ -71,7 +70,7 @@ def __init__(self, app: "Application"):
)

self.subparsers = self.parser.add_subparsers(dest="subparser")
self.commands: Dict[str, Callable] = {} # noqa: FA
self.commands: Dict[str, Callable] = {} # noqa: FA100

self.shell(
getattr(
Expand Down Expand Up @@ -219,7 +218,7 @@ def process_arg(name, *, value=..., **opts):

return wrapper

def run(self, *args: str, prog: Optional[str] = None):
def run(self, *args: str, prog: Optional[str] = None): # noqa: FA100
"""Parse the arguments and run a command."""
if prog:
self.parser.prog = prog
Expand All @@ -246,7 +245,7 @@ def run(self, *args: str, prog: Optional[str] = None):
aio_run(run_fn, ctx, fn, args=pargs, kwargs=kwargs)


async def run_fn(ctx, fn, args=(), kwargs={}): # noqa:
async def run_fn(ctx, fn, args=(), kwargs={}): # noqa: B006
"""Run the given function with the given async context."""
async with ctx:
res = fn(*args, **kwargs)
Expand Down

0 comments on commit 4f9a2b8

Please sign in to comment.