yaml-to-markdown

Developer Documentation

Getting Started

Prerequisites

Setting up the Development Environment

Install the Devbox CLI if you have not already:

curl -fsSL https://get.jetpack.io/devbox | bash

Built with Devbox

Clone the repository

git clone git@github.com:anevis/yaml-to-markdown.git
cd yaml-to-markdown

Start the development environment

devbox shell

Install the required packages

From within a Devbox shell:

uv sync

From outside a Devbox shell:

devbox run install

Code Structure

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.

Testing

Tests are colocated as *_test.py modules under src/yaml_to_markdown/ and use Pytest.

Running the tests

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.

Linting and Formatting

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

Updating Dependencies

To upgrade Python dependencies and refresh the lockfile:

devbox run update

This runs uv sync --all-groups --upgrade.

Contributing

Contributions are welcome. Please open a pull request or an issue on GitHub.

License

This project is licensed under the MIT License — see the LICENSE file for details.