Skip to content

Developing PyHTML

This project uses uv for dependency management.

Install dependencies:

uv sync --all-groups

Code quality

Run tests:

uv run pytest

Measure code coverage:

uv run coverage run -m pytest && uv run coverage html

Run linting:

uv run ruff check

Run type-checking:

uv run mypy

Documentation

Re-generate MDN documentation:

uv run -m generator

Preview documentation site:

uv run mkdocs serve

Build documentation site:

uv run mkdocs build