mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-21 09:40:43 -06:00
style: black linting
This commit is contained in:
parent
b0f7493dc0
commit
f8b1a00c50
2 changed files with 15 additions and 3 deletions
|
@ -14,7 +14,13 @@ def check_item(item):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
items = " ".join((i["goal"] for i in parse_help(gen_makefile(),require_msg=False) if check_item(i)))
|
items = " ".join(
|
||||||
|
(
|
||||||
|
i["goal"]
|
||||||
|
for i in parse_help(gen_makefile(), require_msg=False)
|
||||||
|
if check_item(i)
|
||||||
|
)
|
||||||
|
)
|
||||||
sys.stdout.write(".PHONY: " + items)
|
sys.stdout.write(".PHONY: " + items)
|
||||||
|
|
||||||
|
|
||||||
|
|
10
task.mk
10
task.mk
|
@ -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
|
||||||
TASKMK_VERSION ?= v23.1.1-10-ge85d61c-dev
|
TASKMK_VERSION ?= v23.1.1-12-gb0f7493-dev
|
||||||
# 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.
|
||||||
# You can update your .task.mk with `make _update-task.mk`
|
# You can update your .task.mk with `make _update-task.mk`
|
||||||
|
@ -330,7 +330,13 @@ def check_item(item):
|
||||||
args = parseargs(item.get("msgargs", ""))
|
args = parseargs(item.get("msgargs", ""))
|
||||||
return not args.not_phony
|
return not args.not_phony
|
||||||
def main():
|
def main():
|
||||||
items = " ".join((i["goal"] for i in parse_help(gen_makefile(),require_msg=False) if check_item(i)))
|
items = " ".join(
|
||||||
|
(
|
||||||
|
i["goal"]
|
||||||
|
for i in parse_help(gen_makefile(), require_msg=False)
|
||||||
|
if check_item(i)
|
||||||
|
)
|
||||||
|
)
|
||||||
sys.stdout.write(".PHONY: " + items)
|
sys.stdout.write(".PHONY: " + items)
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue