Makefile¶
Available commands¶
You can always run make help to see the latest list.
Notes
- These are the explicit CLI commands that each
maketarget runs.make all,make build,make check,make docsare composites (they run multiple steps).
| Target | Description |
|---|---|
make help |
Print available targets |
make all |
Clean, setup, check, test |
make build |
Clean and setup |
make setup |
Install dependencies (via uv) and install HyperBench in editable mode |
make setup-tensorboard |
Install optional TensorBoard extra |
make check |
Run lint + format + typecheck |
make lint |
Run the linter (ruff check) |
make lint-fix |
Run the linter with auto-fix (ruff check --fix) |
make lint-rule R=<RULE> |
Lint a single Ruff rule (ruff check --select <RULE>) |
make lint-rule-fix R=<RULE> |
Lint a single Ruff rule with auto-fix |
make format |
Run the formatter (ruff format) |
make typecheck |
Run the type checker (ty check) |
make docstring-check |
Check docstring formatting |
make test |
Run all tests (with coverage) |
make stest T=<test_path> |
Run a single test file/folder under hyperbench/tests/ |
make run <file.py> |
Run a single Python file (for example: make run examples/gcn.py) |
make docs |
Build and serve documentation |
make docs-build |
Build documentation without serving |
make docs-serve |
Serve built documentation locally (default: http://127.0.0.1:8000) |
make loc |
Count lines of Python code |
make clean |
Remove build/test artifacts |
make destroy |
Destroy the environment (removes .venv, lockfile, logs) |
Setup¶
-
make setup: Install dependencies (viauv) and install HyperBench in editable modeCLI:
-
make setup-tensorboard: Install optional TensorBoard extraCLI:
Lint / format / typecheck¶
-
make lint: Run the linter (ruff check)CLI:
-
make lint-fix: Run the linter with auto-fixCLI:
-
make lint-rule R=<RULE>: Lint a single Ruff ruleCLI:
-
make lint-rule-fix R=<RULE>: Lint a single Ruff rule with auto-fixCLI:
-
make format: Run the formatter (ruff format)CLI:
-
make typecheck: Run the type checker (ty check)CLI:
-
make docstring-check: Check docstring formattingCLI:
Tests¶
-
make test: Run all tests (with coverage)CLI:
-
make stest T=<test_name>: Run a single test file or folder underhyperbench/tests/CLI:
Run scripts¶
-
make run <file.py>: Run a single Python fileCLI:
Documentation¶
-
make docs-build: Build documentation without servingCLI:
-
make docs-serve: Serve built documentation locally (default:http://127.0.0.1:8000)CLI:
Maintenance¶
-
make loc: Count lines of Python codeCLI:
-
make clean: Remove build/test artifactsCLI:
-
make destroy: Destroy the environment (removes.venv, lockfile, logs)CLI:
Composite targets¶
Utility targets that run multiple steps in sequence.
make all: Clean, setup, check, testmake build: Clean and setupmake check: Run lint + format + typecheckmake docs: Build and serve documentation