style: linting

This commit is contained in:
Daylin Morgan 2023-01-19 13:43:42 -06:00
parent 4fcab2a13b
commit dca98b8698
2 changed files with 9 additions and 10 deletions

View file

@ -42,9 +42,8 @@ pattern = re.compile(
(?P<rawargs>.*?) (?P<rawargs>.*?)
)? )?
$$ $$
""" """,
,re.X re.X,
) )
goal_pattern = re.compile(r"""^(?!#|\t)(.*):.*\n\t""", re.MULTILINE) goal_pattern = re.compile(r"""^(?!#|\t)(.*):.*\n\t""", re.MULTILINE)
@ -208,7 +207,7 @@ def print_help():
def print_arg_help(help_args): def print_arg_help(help_args):
print(f"{ansi.style('task.mk recipe help','header')}\n") print(f"{ansi.style('task.mk recipe help','header')}\n")
for arg in help_args.split(): for arg in help_args.split():
print("\n".join((*parse_goal(gen_makefile(), arg),'\n'))) print("\n".join((*parse_goal(gen_makefile(), arg), "\n")))
def main(): def main():

View file

@ -1,7 +1,7 @@
# }> [github.com/daylinmorgan/task.mk] <{ # # }> [github.com/daylinmorgan/task.mk] <{ #
# Copyright (c) 2022 Daylin Morgan # Copyright (c) 2022 Daylin Morgan
# MIT License # MIT License
# version: v22.9.28-7-gfa977c4-dev # version: v22.9.28-8-g4fcab2adev
# #
# task.mk should be included at the bottom of your Makefile with `-include .task.mk` # task.mk should be included at the bottom of your Makefile with `-include .task.mk`
# See below for the standard configuration options that should be set prior to including this file. # See below for the standard configuration options that should be set prior to including this file.
@ -111,8 +111,8 @@ pattern = re.compile(
(?P<rawargs>.*?) (?P<rawargs>.*?)
)? )?
$$ $$
""" """,
,re.X re.X,
) )
goal_pattern = re.compile(r"""^(?!#|\t)(.*):.*\n\t""", re.MULTILINE) goal_pattern = re.compile(r"""^(?!#|\t)(.*):.*\n\t""", re.MULTILINE)
def parseargs(argstring): def parseargs(argstring):
@ -250,7 +250,7 @@ def print_help():
def print_arg_help(help_args): def print_arg_help(help_args):
print(f"{ansi.style('task.mk recipe help','header')}\n") print(f"{ansi.style('task.mk recipe help','header')}\n")
for arg in help_args.split(): for arg in help_args.split():
print("\n".join((*parse_goal(gen_makefile(), arg),'\n'))) print("\n".join((*parse_goal(gen_makefile(), arg), "\n")))
def main(): def main():
help_args = os.getenv("HELP_ARGS") help_args = os.getenv("HELP_ARGS")
if help_args: if help_args: