An mdformat plugin for...
Project description
mdformat-pyproject
An mdformat plugin to read configuration from pyproject.toml
.
Install
Install with:
pip install mdformat-pyproject
Usage
After installing this plugin, the mdformat configuration can be added in
a new [tool.mdformat]
section inside the pyproject.toml
file.
[tool.mdformat]
wrap = "keep" # possible values: {"keep", "no", INTEGER}
number = false # possible values: {false, true}
end_of_line = "lf" # possible values: {"lf", "crlf", "keep"}
Usage as a pre-commit hook
Add the following to your .pre-commit-config.yaml
:
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.13 # Use the ref you want to point at
hooks:
- id: mdformat
additional_dependencies:
- mdformat-pyproject
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
Close
Hashes for mdformat_pyproject-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fe74984ca86c3c5219280be7ea8a161fdc0d0a27bd0a788dcec5d9e322a871 |
|
MD5 | eb9115b00232ba1ff2c3d5802a4e5114 |
|
BLAKE2b-256 | ff129a6531cf77bfa4f734372ab3948400d839c2ff64039a8b3ec19e2d694537 |