Install the Devbox CLI if you have not already:
curl -fsSL https://get.jetpack.io/devbox | bash
git clone git@github.com:anevis/yaml-to-markdown.git
cd yaml-to-markdown
devbox shell
From within a Devbox shell:
uv sync
From outside a Devbox shell:
devbox run install
The package lives under src/yaml_to_markdown/.
| Module | Role |
|---|---|
md_converter.py |
MDConverter — converts a dict/list to Markdown |
convert.py |
CLI entry point (yaml-to-markdown) and file I/O helpers |
utils.py |
Shared helpers (e.g. title-case conversion) |
Python usage imports MDConverter from yaml_to_markdown.md_converter. The CLI is registered as yaml-to-markdown via the package entry point.
Tests are colocated as *_test.py modules under src/yaml_to_markdown/ and use Pytest.
From within a Devbox shell:
pytest src/
From outside a Devbox shell:
devbox run test
devbox run test also writes a coverage report to output/coverage.xml.
The project uses Ruff for formatting and linting, and mypy for type checking.
From within a Devbox shell:
ruff format src/
ruff check src/
mypy --config-file=pyproject.toml src/
From outside a Devbox shell:
devbox run format
devbox run lint
To upgrade Python dependencies and refresh the lockfile:
devbox run update
This runs uv sync --all-groups --upgrade.
Contributions are welcome. Please open a pull request or an issue on GitHub.
This project is licensed under the MIT License — see the LICENSE file for details.