Skip to content

Commit

Permalink
style: pre-commit.ci auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2023
1 parent 7bd98ec commit fe10d93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reps/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
6 changes: 2 additions & 4 deletions reps/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

HOOKS = defaultdict(list)


def hook(name: str) -> Callable[[HookFn], HookFn]:
def wrapper(func: HookFn) -> HookFn:
HOOKS[name].append(func)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit fe10d93

Please sign in to comment.