Support for docstrings in makefiles
Project description
MkHelp
Support for docstrings in makefiles
Sometimes it is convenient to use a makefile as interface to development workflows.
The recipes are flexible, can depend on other targets and make
provides tab completion.
With the script provided by this package it is easy to also get a help message describing important make targets.
Look at the .DEFAULT_GOAL
and bin/print_makefile_help.py
targets in the makefile to see how to set it up.
Once set up it could look something like
$ make
Verbs:
help: Print help message
Checks:
check_all: Run all checks that have not yet passed
check_format: Check format
check_lint: Check lint
check_dist: Check that distribution can be built and will render correctly on PyPi
check_docs: Check that documentation can be built
check_diff: Check that there are no untracked git changes
check_tests: Check that unit tests pass
check_tox: Check that unit tests pass in multiple environments
check_types: Check types
Fixes:
fix_format: Fix format
Nouns:
bin/print_makefile_help.py: Update the script that generates the help message for this makefile
build/docs/index.html: Build this documentation
One additional feature of this package is to export the docstrings in the makefile to other formats allowing them to be included in documentation.
Look at the build/docs/index.html
target in the makefile to see how to set it up.
Once set up it could look something like the makefile page in the docs of this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mkhelp-0.2.1.tar.gz
.
File metadata
- Download URL: mkhelp-0.2.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28a60d488afa304523898f5e468a6bf9f604bdae8ec60f7b9a8876d520fba0bb |
|
MD5 | 53f0f7dd13ceb2d69003b36f94922bb3 |
|
BLAKE2b-256 | 3ce6716b9ae189454019ccc050c472d863b7a4dbd504231d86356d3c3fca24c1 |
File details
Details for the file mkhelp-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mkhelp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7fcdea8273fce050230bd6efb5d742277cc5243745e5b41e360ac01c6508937 |
|
MD5 | 2334a7cf870439ffde3df33611780ec3 |
|
BLAKE2b-256 | 82d94996737beb48a4b97e061b9428dce6e600279dca161b55f90913afce55ae |