Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
85d5751
delete server and db
SAKURA-CAT Jun 9, 2024
8557d33
update
SAKURA-CAT Jun 9, 2024
d0e849c
Update package.json
SAKURA-CAT Jun 9, 2024
b9acea9
Delete utils.py
SAKURA-CAT Jun 9, 2024
e6895f0
Update pyproject.toml
SAKURA-CAT Jun 10, 2024
3bffee7
Revert "Update pyproject.toml"
SAKURA-CAT Jun 10, 2024
0ad0c39
delete: watch
Feudalman Jun 11, 2024
2f707fa
delete: get db path
Feudalman Jun 11, 2024
821f291
update ignore
SAKURA-CAT Jun 11, 2024
9095da6
Merge branch 'main' into feat/dashboard
SAKURA-CAT Jun 11, 2024
f97450b
update test
SAKURA-CAT Jun 11, 2024
fc5caf1
Update publish-to-pypi.yml
Feudalman Jun 11, 2024
6d0117b
update package
SAKURA-CAT Jun 11, 2024
02960c5
Merge branch 'feat/dashboard' of https://github.com/SwanHubX/swanlab …
SAKURA-CAT Jun 11, 2024
511cfae
refactor: options rule
Feudalman Jun 12, 2024
11249d7
update cli
SAKURA-CAT Jun 12, 2024
1390409
update
SAKURA-CAT Jun 12, 2024
9cbcd98
feat: board runner
Feudalman Jun 12, 2024
5ff9638
update login
SAKURA-CAT Jun 12, 2024
2bf673c
update logout test
SAKURA-CAT Jun 12, 2024
2a1e738
change converter
SAKURA-CAT Jun 12, 2024
ccec9c4
delete some code
SAKURA-CAT Jun 12, 2024
1ca3ca5
fix unresolve
SAKURA-CAT Jun 12, 2024
778d580
update watch
SAKURA-CAT Jun 12, 2024
53ccc67
update watch test
SAKURA-CAT Jun 13, 2024
c2ba406
fix some bugs
SAKURA-CAT Jun 13, 2024
3c1a408
fix test bug
SAKURA-CAT Jun 13, 2024
4d36fe6
revert code
SAKURA-CAT Jun 13, 2024
2e82a07
update cli test
SAKURA-CAT Jun 13, 2024
bc1e7da
Update pytest_cli_watch.py
SAKURA-CAT Jun 13, 2024
eef11c7
update version
SAKURA-CAT Jun 13, 2024
1391cdd
Update requirements.txt
SAKURA-CAT Jun 13, 2024
8ad5417
revert converter
SAKURA-CAT Jun 13, 2024
1141646
add test
SAKURA-CAT Jun 13, 2024
906dead
update swanboard
SAKURA-CAT Jun 14, 2024
daf740c
update README - del -l
Zeyi-Lin Jun 14, 2024
6afbea1
README-update-emoji
Zeyi-Lin Jun 14, 2024
edd414a
update version
SAKURA-CAT Jun 14, 2024
e597bcd
Merge branch 'feat/dashboard' of https://github.com/SwanHubX/swanlab …
SAKURA-CAT Jun 14, 2024
35f4b38
Update requirements.txt
SAKURA-CAT Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed .config/copy_frontend.py
Empty file.
21 changes: 0 additions & 21 deletions .editorconfig

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.cjs

This file was deleted.

9 changes: 1 addition & 8 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to PyPI
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
publish:
Expand All @@ -18,14 +18,8 @@ jobs:
with:
python-version: "3.10"

- name: Set Nodejs
uses: actions/setup-node@v4
with:
node-version: 18.15.0

- name: Install Dependencies
run: |
npm install
pip install -r requirements.txt
pip install build
pip install twine
Expand All @@ -36,7 +30,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

run: |
npm run build.release
python -m build
python -m twine upload dist/*

Expand Down
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# frontend
node_modules
template
package-lock.json
pnpm-lock.yaml
vue/components.d.ts
vue/auto-imports.d.ts
swanlog/
swanlog.bak/
.eslintrc-auto-import.json
node_modules/
dist/
vue/
swanlab/template/
package-lock.json
.eslintrc-auto-import.json

# test
temp/
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/pre-push

This file was deleted.

68 changes: 0 additions & 68 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

12 changes: 1 addition & 11 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"recommendations": [
/**
* 前端相关插件
*/
"Vue.volar",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"lokalise.i18n-ally",
"mrmlnc.vscode-json5",
/**
* python插件
*/
Expand All @@ -23,7 +13,7 @@
*/
// 代码风格统一
"editorconfig.editorconfig",
// 代码标记,TODO FIXME等
// 代码标记,比如TODO FIXME等
"gruntfuggly.todo-tree",
// 代码协作,git协作
"eamodio.gitlens",
Expand Down
37 changes: 12 additions & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,6 @@
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// 启动前端开发服务
{
"name": "前端开发",
"request": "launch",
"cwd": "${workspaceRoot}",
"type": "node",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"]
},
// 启动后端开发服务
{
"name": "后端开发",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/test/start_server.py",
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
},
// 模拟实验开启
{
"name": "开启一个实验",
Expand All @@ -35,7 +14,9 @@
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
},
// python运行当前文件
{
Expand All @@ -47,22 +28,28 @@
"justMyCode": true,
"cwd": "${workspaceFolder}",
//sys.path 会加入顶层目录,影响模块导入查询路径
"env": { "PYTHONPATH": "${workspaceFolder}" }
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
},
{
"name": "测试当前文件",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": ["${file}"],
"args": [
"${file}"
],
"console": "integratedTerminal"
},
{
"name": "进行所有单元测试",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": ["test/unit"],
"args": [
"test/unit"
],
"console": "integratedTerminal"
},
// 打包命令
Expand Down
Loading