From fe10d935a994fff3221064b673161c5254bfb947 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:58:40 +0000 Subject: [PATCH] style: pre-commit.ci auto fixes [...] --- reps/console.py | 2 +- reps/hooks.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/reps/console.py b/reps/console.py index dddb26a..e21108e 100644 --- a/reps/console.py +++ b/reps/console.py @@ -34,7 +34,7 @@ def command_new(name: str, template: str, **cookiecutter_args: Any): ) -def run(args: List[str]=sys.argv[1:]): +def run(args: List[str] = sys.argv[1:]): parser = ArgumentParser() parser.add_argument( "name", nargs="?", default=None, help="Name of the project to create." diff --git a/reps/hooks.py b/reps/hooks.py index aee51aa..4e25e14 100644 --- a/reps/hooks.py +++ b/reps/hooks.py @@ -12,6 +12,7 @@ HOOKS = defaultdict(list) + def hook(name: str) -> Callable[[HookFn], HookFn]: def wrapper(func: HookFn) -> HookFn: HOOKS[name].append(func) @@ -112,10 +113,7 @@ def build_specifiers(*packages: str) -> Generator[str, None, None]: + list(build_specifiers("sphinx<7", "sphinx-autobuild", "sphinx-book-theme")) ) - run( - ["poetry", "add", "--group=type"] - + list(build_specifiers("pyright")) - ) + run(["poetry", "add", "--group=type"] + list(build_specifiers("pyright"))) @hook("post-gen-py")