Skip to content

Commit

Permalink
adapt:system (#18)
Browse files Browse the repository at this point in the history
change callback models
  • Loading branch information
SAKURA-CAT authored Oct 20, 2024
1 parent 830b403 commit 45cabb1
Show file tree
Hide file tree
Showing 15 changed files with 297 additions and 114 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-when-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Test
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.idea/
venv/
test/temp/
dist/
Expand Down
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/SwanLab-Toolkit.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/file.template.settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/fileTemplates/internal/Python Script.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "hatchling.build"

[project]
name = "swankit"
version = "0.1.1b3"
version = "0.1.2b0"
dynamic = ["readme"]
description = "Base toolkit for SwanLab"
license = "Apache-2.0"
Expand All @@ -23,6 +23,8 @@ authors = [
"Source" = "https://github.com/SwanHubX/SwanLab-Toolkit"
"Bug Reports" = "https://github.com/SwanHubX/SwanLab-Toolkit/issues"

[tool.hatch.metadata.hooks.requirements_txt]
filename = "requirements.txt"

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyyaml
11 changes: 9 additions & 2 deletions swankit/callback/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
@Description:
与回调函数通信时的模型
"""
from .key import MediaBuffer, MetricInfo, ColumnInfo
from .key import MediaBuffer, MetricInfo, ColumnInfo, MetricErrorInfo
from .error import OperateErrorInfo
from .runtime import RuntimeInfo

__all__ = ["MediaBuffer", "MetricInfo", "ColumnInfo", "OperateErrorInfo", "RuntimeInfo"]
__all__ = [
"ColumnInfo",
"MediaBuffer",
"MetricInfo",
"MetricErrorInfo",
"OperateErrorInfo",
"RuntimeInfo",
]
Loading

0 comments on commit 45cabb1

Please sign in to comment.