-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save changes on Wed Apr 10 15:32:25 WIB 2024
- Loading branch information
1 parent
25bc115
commit 6485e8c
Showing
5 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import os | ||
from typing import Any | ||
|
||
from zrb import Task, python_task, runner | ||
from zrb import CmdTask, runner | ||
|
||
from ._env import LOCAL_REPO_DIR_ENV | ||
from ._group import noto_group | ||
from ._helper import run_cmd_path | ||
|
||
_CURRENT_DIR = os.path.dirname(__file__) | ||
|
||
|
||
@python_task( | ||
name="lint", group=noto_group, description="Lint code", envs=[LOCAL_REPO_DIR_ENV] | ||
lint_noto = CmdTask( | ||
name="lint", | ||
group=noto_group, | ||
description="Lint code", | ||
envs=[LOCAL_REPO_DIR_ENV], | ||
cmd_path=os.path.join(_CURRENT_DIR, "lint.sh"), | ||
should_show_cmd=False, | ||
should_print_cmd_result=False | ||
) | ||
async def lint_noto(*args: Any, **kwargs: Any): | ||
task: Task = kwargs.get("_task") | ||
await run_cmd_path(task, os.path.join(_CURRENT_DIR, "lint.sh")) | ||
|
||
|
||
runner.register(lint_noto) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters