diff --git a/.obsidian/workspace-mobile.json b/.obsidian/workspace-mobile.json index aa3de26..b4cf564 100644 --- a/.obsidian/workspace-mobile.json +++ b/.obsidian/workspace-mobile.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "組織/EverfortuneAI/{Note} Nox.md", + "file": "組織/EverfortuneAI/{Note} Packaging Python Project.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "{Note} Nox" + "title": "{Note} Packaging Python Project" } } ] @@ -146,8 +146,8 @@ }, "active": "e0251782d53c0c60", "lastOpenFiles": [ - "組織/EverfortuneAI/{Note} Packaging Python Project.md", "組織/EverfortuneAI/{Note} Nox.md", + "組織/EverfortuneAI/{Note} Packaging Python Project.md", "README.md", "Test.md", "組織/EverfortuneAI/resources/should_setup_py_be_deleted.png", diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index e854732..04421c5 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -27,12 +27,12 @@ "state": { "type": "markdown", "state": { - "file": "README.md", + "file": "組織/EverfortuneAI/{Note} Nox.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "README" + "title": "{Note} Nox" } } ], @@ -108,7 +108,7 @@ "state": { "type": "backlink", "state": { - "file": "README.md", + "file": "組織/EverfortuneAI/{Note} Nox.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -118,7 +118,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "README 的反向連結" + "title": "{Note} Nox 的反向連結" } }, { @@ -127,12 +127,12 @@ "state": { "type": "outgoing-link", "state": { - "file": "README.md", + "file": "組織/EverfortuneAI/{Note} Nox.md", "linksCollapsed": false, "unlinkedCollapsed": true }, "icon": "links-going-out", - "title": "README 的對外連結" + "title": "{Note} Nox 的對外連結" } }, { @@ -154,10 +154,10 @@ "state": { "type": "outline", "state": { - "file": "README.md" + "file": "組織/EverfortuneAI/{Note} Nox.md" }, "icon": "lucide-list", - "title": "README 的大綱" + "title": "{Note} Nox 的大綱" } }, { @@ -190,9 +190,9 @@ }, "active": "23dfe70ddddd299f", "lastOpenFiles": [ - "組織/EverfortuneAI/{Note} Nox.md", "組織/EverfortuneAI/{Note} Packaging Python Project.md", "README.md", + "組織/EverfortuneAI/{Note} Nox.md", "組織/EverfortuneAI/resources/should_setup_py_be_deleted.png", "組織/EverfortuneAI/resources/nox.png", "組織/EverfortuneAI/resources/nox 1.png", diff --git a/組織/EverfortuneAI/{Note} Nox.md b/組織/EverfortuneAI/{Note} Nox.md index b4e6017..55b1a65 100644 --- a/組織/EverfortuneAI/{Note} Nox.md +++ b/組織/EverfortuneAI/{Note} Nox.md @@ -20,8 +20,9 @@ tags: 3. 於終端機輸入`nox` 開始進行測試 - Note - 若只想執行某個函式的程式碼,可執行`nox -s [function_name]` - - 若想將測試結果輸出檔案,可執行`nox --report [file_name].json` + - 若想將測試結果輸出檔案(測試組合很多的時候很適合),可執行`nox --report [file_name].json` - 小知識,如果semantic version沒有給patch的話,則其為0(比方說我們要測試的numpy版本設為1.24,則其實際測試的版本為1.24.0) + - 測試的環境會放在`.nox`底下(通常以python搭配套件名稱進行資料夾命名,若套件太多則會hash成短名稱),如果使用`reuse_venv`則nox會去重新使用這些環境檔進行測試,可節省重新建立環境的時間 - 以下為*noxfile.py*範例程式碼(透過環境是否能順利通過單元測試來判別套件之間的匹配性) ```python