An mdformat plugin for reading configuration from ``pyproject.toml`` files.
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: 1.0.0 # 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdformat_pyproject-0.1.1.tar.gz.
File metadata
- Download URL: mdformat_pyproject-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be16ed754d42db5f5e376ccb9cdbdfefc7750f7f77eadddde37f99ab87272b54
|
|
| MD5 |
3f7aafb392ad8315d10271d7a36a35bb
|
|
| BLAKE2b-256 |
a7334c7400f8d2ed273d675e72f55c33e72e08e6224a35f184ffca8ae6d40d53
|
File details
Details for the file mdformat_pyproject-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mdformat_pyproject-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d849f5c587ec7dc74a8d240139d3a9ecb65ea553cdb11e01f927fc55f248ce
|
|
| MD5 |
94cd606eda62d30d934343623eb839d6
|
|
| BLAKE2b-256 |
5a31113382823075056a46de42b21ed31372908f30d353c11ca01ec447ca2829
|