Skip to main content

Makefile to Markdown

Coverage

Overview

Simple command-line utility that converts Makefiles to Markdown if specific commenting style is followed.

Headers

Headers (sections) should look like this:

# -----------------------------------------------------------------------------
# Header Name
# -----------------------------------------------------------------------------

Commands

Commands should look like this:

command:  ## Command description
	echo "do something"

Example Makefile

# -----------------------------------------------------------------------------
# Testing
# -----------------------------------------------------------------------------

pytest:  ## Run tests
	pytest -vx

pytest_verbose:  ## Run tests in verbose mode
	pytest -vvs

coverage:  ## Run tests with coverage
	coverage run -m pytest && coverage html

coverage_verbose:  ## Run tests with coverage in verbose mode
	coverage run -m pytest -vss && coverage html

coverage_skip:  ## Run tests with coverage and skip covered
	coverage run -m pytest -vs && coverage html --skip-covered

open_coverage:  ## Open coverage report
	open htmlcov/index.html

# -----------------------------------------------------------------------------
# Ruff
# -----------------------------------------------------------------------------

ruff_format: ## Run ruff format
	ruff format src/env_secret_extractor

ruff_check: ## Run ruff check
	ruff check src/env_secret_extractor

ruff_clean: ## Run ruff clean
	ruff clean

Installation

python3 -m pip install makefile-to-markdown

Usage

makefile-to-markdown convert --path "Makefile"

Development

make env
make pip_install
make pip_install_editable

Testing

make pytest
make coverage
make open_coverage

Issues

If you experience any issues, please create an issue on Github.

Not Exactly What You Want?

This is what I want. It might not be what you want. If you have differences in your preferred setup, I encourage you to fork this to create your own version.

History

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.1.1 (2024-04-23)

  • Moved from argparse to click

0.1.0 (2024-04-16)

  • First release

Metadata

Release files for makefile-to-markdown 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for makefile-to-markdown 0.1.1
File Size Uploaded
makefile_to_markdown-0.1.1.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for makefile-to-markdown 0.1.1
File Interpreter ABI Platform
makefile_to_markdown-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / makefile_to_markdown-0.1.1.tar.gz

Download URL makefile_to_markdown-0.1.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8f4aa3669b2ed0f22a393e35d101b4ec23929f1a5a951273c092093a2cfbb0a
BLAKE2b-256 checksum
How to use checksums
eeb3e8cbf8dcaf0c297d7cff5fb997030a887a14e4392ea2e01cc6b5dfc4c34b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.11

Release files / makefile_to_markdown-0.1.1-py3-none-any.whl

Download URL makefile_to_markdown-0.1.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06235aaef1c89a70011459144dd95cfdbe3e3bd6a4e8ed5f535d17edb425bb79
BLAKE2b-256 checksum
How to use checksums
5e43af47d823e5204adfbbe638719ad5635fd05f2a998850fc85ad647ed76d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page