Skip to content

Commit

Permalink
feat: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Oct 11, 2023
2 parents 1a0ea8f + 0e8f4b4 commit 500cbab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "muffin"
version = "0.99.3"
version = "0.100.0"
description = "Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)"
readme = "README.rst"
license = "MIT"
Expand Down

0 comments on commit 500cbab

Please sign in to comment.