vault backup: 2025-01-13 13:30:11

This commit is contained in:
deng 2025-01-13 13:30:11 +08:00
parent 0031b25cdd
commit 36d5ecfe65
3 changed files with 14 additions and 13 deletions

View File

@ -13,12 +13,12 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "組織/EverfortuneAI/{Note} Nox.md", "file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "{Note} Nox" "title": "{Note} Packaging Python Project"
} }
} }
] ]
@ -146,8 +146,8 @@
}, },
"active": "e0251782d53c0c60", "active": "e0251782d53c0c60",
"lastOpenFiles": [ "lastOpenFiles": [
"組織/EverfortuneAI/{Note} Packaging Python Project.md",
"組織/EverfortuneAI/{Note} Nox.md", "組織/EverfortuneAI/{Note} Nox.md",
"組織/EverfortuneAI/{Note} Packaging Python Project.md",
"README.md", "README.md",
"Test.md", "Test.md",
"組織/EverfortuneAI/resources/should_setup_py_be_deleted.png", "組織/EverfortuneAI/resources/should_setup_py_be_deleted.png",

View File

@ -27,12 +27,12 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "README.md", "file": "組織/EverfortuneAI/{Note} Nox.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "README" "title": "{Note} Nox"
} }
} }
], ],
@ -108,7 +108,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "README.md", "file": "組織/EverfortuneAI/{Note} Nox.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -118,7 +118,7 @@
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-coming-in", "icon": "links-coming-in",
"title": "README 的反向連結" "title": "{Note} Nox 的反向連結"
} }
}, },
{ {
@ -127,12 +127,12 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "README.md", "file": "組織/EverfortuneAI/{Note} Nox.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-going-out", "icon": "links-going-out",
"title": "README 的對外連結" "title": "{Note} Nox 的對外連結"
} }
}, },
{ {
@ -154,10 +154,10 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "README.md" "file": "組織/EverfortuneAI/{Note} Nox.md"
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "README 的大綱" "title": "{Note} Nox 的大綱"
} }
}, },
{ {
@ -190,9 +190,9 @@
}, },
"active": "23dfe70ddddd299f", "active": "23dfe70ddddd299f",
"lastOpenFiles": [ "lastOpenFiles": [
"組織/EverfortuneAI/{Note} Nox.md",
"組織/EverfortuneAI/{Note} Packaging Python Project.md", "組織/EverfortuneAI/{Note} Packaging Python Project.md",
"README.md", "README.md",
"組織/EverfortuneAI/{Note} Nox.md",
"組織/EverfortuneAI/resources/should_setup_py_be_deleted.png", "組織/EverfortuneAI/resources/should_setup_py_be_deleted.png",
"組織/EverfortuneAI/resources/nox.png", "組織/EverfortuneAI/resources/nox.png",
"組織/EverfortuneAI/resources/nox 1.png", "組織/EverfortuneAI/resources/nox 1.png",

View File

@ -20,8 +20,9 @@ tags:
3. 於終端機輸入`nox` 開始進行測試 3. 於終端機輸入`nox` 開始進行測試
- Note - Note
- 若只想執行某個函式的程式碼,可執行`nox -s [function_name]` - 若只想執行某個函式的程式碼,可執行`nox -s [function_name]`
- 若想將測試結果輸出檔案,可執行`nox --report [file_name].json` - 若想將測試結果輸出檔案(測試組合很多的時候很適合),可執行`nox --report [file_name].json`
- 小知識如果semantic version沒有給patch的話則其為0比方說我們要測試的numpy版本設為1.24則其實際測試的版本為1.24.0 - 小知識如果semantic version沒有給patch的話則其為0比方說我們要測試的numpy版本設為1.24則其實際測試的版本為1.24.0
- 測試的環境會放在`.nox`底下通常以python搭配套件名稱進行資料夾命名若套件太多則會hash成短名稱如果使用`reuse_venv`則nox會去重新使用這些環境檔進行測試可節省重新建立環境的時間
- 以下為*noxfile.py*範例程式碼(透過環境是否能順利通過單元測試來判別套件之間的匹配性) - 以下為*noxfile.py*範例程式碼(透過環境是否能順利通過單元測試來判別套件之間的匹配性)
```python ```python