Skip to content

Commit

Permalink
Use separate environment without install
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Dec 24, 2024
1 parent 3abdee2 commit 83502a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: pypa/hatch@install

- name: 🔨 Build Documentation
run: hatch run docs-build
run: hatch -e docs run build

- name: ⬆️ Upload Artifacts
uses: actions/upload-pages-artifact@v3
Expand Down
18 changes: 12 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ exclude = ["/.github", "/.idea"]
[tool.hatch.envs.default]
python = "3.13.1"
dependencies = [
"mkdocs-material==9.5.49",
"mkdocstrings-python==1.12.2",
"pyinstaller==6.11.1",
]
[tool.hatch.envs.default.scripts]
docs = "mkdocs serve"
docs-build = "mkdocs build"
exe = "pyinstaller.exe ephys_link.spec -y -- -d && pyinstaller.exe ephys_link.spec -y"
exe-clean = "pyinstaller.exe ephys_link.spec -y --clean"

build = "pyinstaller.exe ephys_link.spec -y -- -d && pyinstaller.exe ephys_link.spec -y"
build-clean = "pyinstaller.exe ephys_link.spec -y --clean"
[tool.hatch.envs.docs]
python = "3.13.1"
skip-install = true
dependencies = [
"mkdocs-material==9.5.49",
"mkdocstrings-python==1.12.2",
]
[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve"
build = "mkdocs build"

[tool.ruff.lint]
extend-ignore = ["DTZ005"]

0 comments on commit 83502a9

Please sign in to comment.