Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 20 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
app := hike
src := src/
tests := tests/
docs := docs/
run := uv run
sync := uv sync
build := uv build
publish := uv publish --username=__token__ --keyring-provider=subprocess
test := $(run) pytest
python := $(run) python
ruff := $(run) ruff
lint := $(ruff) check
fmt := $(ruff) format
mypy := $(run) mypy
mkdocs := $(run) mkdocs
spell := $(run) codespell
app := hike
src := src/
tests := tests/
docs := docs/
run := uv run
sync := uv sync
build := uv build
publish := uv publish --username=__token__ --keyring-provider=subprocess
test := $(run) pytest
python := $(run) python
ruff := $(run) ruff
lint := $(ruff) check
fmt := $(ruff) format
mypy := $(run) mypy
mkdocs := $(run) zensical
publish-docs := $(run) ghp-import --no-jekyll --push
spell := $(run) codespell

##############################################################################
# Local "interactive testing" of the code.
Expand Down Expand Up @@ -88,8 +89,8 @@ rtfm: # Locally read the library documentation
$(mkdocs) serve

.PHONY: publishdocs
publishdocs: clean-docs # Set up the docs for publishing
$(mkdocs) gh-deploy
publishdocs: clean-docs docs # Set up the docs for publishing
$(publish-docs) site/

##############################################################################
# Package/publish.
Expand Down Expand Up @@ -132,7 +133,7 @@ clean-packaging: # Clean the package building files

.PHONY: clean-docs
clean-docs: # Clean up the documentation building files
rm -rf site .screenshot_cache
rm -rf site .cache

.PHONY: clean
clean: clean-packaging clean-docs # Clean the build directories
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ dev = [
"pre-commit>=4.1.0",
"textual-dev>=1.7.0",
"pytest>=8.3.4",
"mkdocs-material>=9.6.11",
"markdown-exec>=1.10.3",
"codespell>=2.4.1",
"ruff>=0.12.9",
"zensical>=0.0.24",
"ghp-import>=2.1.0",
]

[[tool.uv.index]]
Expand Down
Loading