From a9fc9f743a7bb4c8b0b73fc8686886a96321db3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E5=BE=8B=E7=BA=AF?= Date: Fri, 19 Jul 2024 09:24:14 +0800 Subject: [PATCH] refactor(dev)!: Add `grps` folder in `dev` dir --- hrc/core.py | 2 +- hrc/dev/__init__.py | 3 +-- hrc/dev/grps/__init__.py | 1 + hrc/dev/grps/v1.py | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 hrc/dev/grps/__init__.py create mode 100644 hrc/dev/grps/v1.py diff --git a/hrc/core.py b/hrc/core.py index 6efb4af..72997c0 100644 --- a/hrc/core.py +++ b/hrc/core.py @@ -433,7 +433,7 @@ async def _handle_event(self, current_event: Optional[Event[Any]] = None) -> Non rule_state = _rule.__init_state__() if rule_state is not None: self.rule_state[_rule.name] = rule_state - # TODO(简律纯): Refactor event handle process + # TODO(简律纯): Refactor event handle process with General Rules Package Standard if await _rule.rule(): logger.info(f"Event will be handled by {_rule!r}") try: diff --git a/hrc/dev/__init__.py b/hrc/dev/__init__.py index b3e76b3..960de51 100644 --- a/hrc/dev/__init__.py +++ b/hrc/dev/__init__.py @@ -1,3 +1,2 @@ from .character import Character - -__all__ = ["Character"] +from .grps import v1 diff --git a/hrc/dev/grps/__init__.py b/hrc/dev/grps/__init__.py new file mode 100644 index 0000000..bbf8c7e --- /dev/null +++ b/hrc/dev/grps/__init__.py @@ -0,0 +1 @@ +from . import v1 \ No newline at end of file diff --git a/hrc/dev/grps/v1.py b/hrc/dev/grps/v1.py new file mode 100644 index 0000000..4fc42ba --- /dev/null +++ b/hrc/dev/grps/v1.py @@ -0,0 +1,2 @@ +__version__ = "1.0.0-alpha.1" +