@@ -7,21 +7,21 @@ PATH_PKG_R := pkg-r
77PATH_PKG_PY := pkg-py
88PATH_PKG_JS := js
99
10- # .PHONY: install-quarto
11- # install-quarto:
12- # @echo "🔵 Installing quarto"
13- # @if ! [ -z $(command -v qvm)]; then \
14- # @echo "Error: qvm is not installed. Please visit https://github.com/dpastoor/qvm/releases/ to install it." >&2 \
15- # exit 1; \
16- # fi
17- # qvm install v${QUARTO_VERSION}
18- # @echo "🔹 Updating .vscode/settings.json"
19- # @awk -v path="${QUARTO_PATH}" '/"quarto.path":/ {gsub(/"quarto.path": ".*"/, "\"quarto.path\": \"" path "\"")} 1' .vscode/settings.json > .vscode/settings.json.tmp && mv .vscode/settings.json.tmp .vscode/settings.json
20- # @echo "🔹 Updating .github/workflows/quartodoc.yaml"
21- # @awk -v ver="${QUARTO_VERSION}" '/QUARTO_VERSION:/ {gsub(/QUARTO_VERSION: .*/, "QUARTO_VERSION: " ver)} 1' .github/workflows/quartodoc.yaml > .github/workflows/quartodoc.yaml.tmp && mv .github/workflows/quartodoc.yaml.tmp .github/workflows/quartodoc.yaml
10+ .PHONY : install-quarto
11+ install-quarto :
12+ @echo " 🔵 Installing quarto"
13+ @if ! [ -z $( command -v qvm) ]; then \
14+ @echo " Error: qvm is not installed. Please visit https://github.com/dpastoor/qvm/releases/ to install it." >&2 \
15+ exit 1; \
16+ fi
17+ qvm install v${QUARTO_VERSION}
18+ @echo " 🔹 Updating .vscode/settings.json"
19+ @awk -v path=" ${QUARTO_PATH} " ' /"quarto.path":/ {gsub(/"quarto.path": ".*"/, "\"quarto.path\": \"" path "\"")} 1' .vscode/settings.json > .vscode/settings.json.tmp && mv .vscode/settings.json.tmp .vscode/settings.json
20+ @echo " 🔹 Updating .github/workflows/quartodoc.yaml"
21+ @awk -v ver=" ${QUARTO_VERSION} " ' /QUARTO_VERSION:/ {gsub(/QUARTO_VERSION: .*/, "QUARTO_VERSION: " ver)} 1' .github/workflows/quartodoc.yaml > .github/workflows/quartodoc.yaml.tmp && mv .github/workflows/quartodoc.yaml.tmp .github/workflows/quartodoc.yaml
2222
23- # .PHONY: docs
24- # docs: r-docs-render py-docs-render ## [docs] Build the documentation
23+ .PHONY : docs
24+ docs : r-docs py-docs-render # # [docs] Build the documentation
2525
2626# .PHONY: docs-preview
2727# docs-preview: ## [docs] Preview the documentation
@@ -111,7 +111,7 @@ r-docs-preview: ## [r] Build R docs
111111
112112.PHONY : py-setup
113113py-setup : # # [py] Setup python environment
114- uv sync --all-extras
114+ uv sync --all-extras --all-groups
115115
116116.PHONY : py-check
117117# py-check: py-check-format py-check-types py-check-tests ## [py] Run python checks
@@ -165,39 +165,39 @@ py-format: ## [py] Format python code
165165# @echo "📸 Updating pytest snapshots"
166166# uv run pytest --snapshot-update
167167
168- # .PHONY: py-docs
169- # py-docs: py-docs-api py-docs-render ## [py] Build python docs
170-
171- # .PHONY: py-docs-render
172- # py-docs-render: ## [py] Render python docs
173- # @echo "📖 Rendering python docs with quarto"
174- # @$(eval export IN_QUARTODOC=true)
175- # ${QUARTO_PATH} render pkg-py/docs
176-
177- # .PHONY: py-docs-preview
178- # py-docs-preview: ## [py] Preview python docs
179- # @echo "📖 Rendering python docs with quarto"
180- # @$(eval export IN_QUARTODOC=true)
181- # ${QUARTO_PATH} preview pkg-py/docs
182-
183- # .PHONY: py-docs-api
184- # py-docs-api: ## [py] Update python API docs
185- # @echo "📖 Generating python docs with quartodoc"
186- # @$(eval export IN_QUARTODOC=true)
187- # cd pkg-py/docs && uv run quartodoc build
188- # cd pkg-py/docs && uv run quartodoc interlinks
189-
190- # .PHONY: py-docs-api-watch
191- # py-docs-api-watch: ## [py] Update python docs
192- # @echo "📖 Generating python docs with quartodoc"
193- # @$(eval export IN_QUARTODOC=true)
194- # uv run quartodoc build --config pkg-py/docs/_quarto.yml --watch
195-
196- # .PHONY: py-docs-clean
197- # py-docs-clean: ## [py] Clean python docs
198- # @echo "🧹 Cleaning python docs"
199- # rm -r pkg-py/docs/api
200- # find pkg-py/docs/py -name '*.quarto_ipynb' -delete
168+ .PHONY : py-docs
169+ py-docs : py-docs-api py-docs-render # # [py] Build python docs
170+
171+ .PHONY : py-docs-render
172+ py-docs-render : # # [py] Render python docs
173+ @echo " 📖 Rendering python docs with quarto"
174+ @$(eval export IN_QUARTODOC=true)
175+ ${QUARTO_PATH} render pkg-py/docs
176+
177+ .PHONY : py-docs-preview
178+ py-docs-preview : # # [py] Preview python docs
179+ @echo " 📖 Rendering python docs with quarto"
180+ @$(eval export IN_QUARTODOC=true)
181+ ${QUARTO_PATH} preview pkg-py/docs
182+
183+ .PHONY : py-docs-api
184+ py-docs-api : # # [py] Update python API docs
185+ @echo " 📖 Generating python docs with quartodoc"
186+ @$(eval export IN_QUARTODOC=true)
187+ cd pkg-py/docs && uv run quartodoc build
188+ cd pkg-py/docs && uv run quartodoc interlinks
189+
190+ .PHONY : py-docs-api-watch
191+ py-docs-api-watch : # # [py] Update python docs
192+ @echo " 📖 Generating python docs with quartodoc"
193+ @$(eval export IN_QUARTODOC=true)
194+ uv run quartodoc build --config pkg-py/docs/_quarto.yml --watch
195+
196+ .PHONY : py-docs-clean
197+ py-docs-clean : # # [py] Clean python docs
198+ @echo " 🧹 Cleaning python docs"
199+ rm -r pkg-py/docs/api
200+ find pkg-py/docs/py -name ' *.quarto_ipynb' -delete
201201
202202.PHONY : py-build
203203py-build : # # [py] Build python package
0 commit comments