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
Metadata
Release files for mdformat_pyproject 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mdformat_pyproject-0.1.1.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mdformat_pyproject-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / mdformat_pyproject-0.1.1.tar.gz
| Download URL | mdformat_pyproject-0.1.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be16ed754d42db5f5e376ccb9cdbdfefc7750f7f77eadddde37f99ab87272b54
|
|
BLAKE2b-256 checksum How to use checksums |
a7334c7400f8d2ed273d675e72f55c33e72e08e6224a35f184ffca8ae6d40d53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / mdformat_pyproject-0.1.1-py3-none-any.whl
| Download URL | mdformat_pyproject-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92d849f5c587ec7dc74a8d240139d3a9ecb65ea553cdb11e01f927fc55f248ce
|
|
BLAKE2b-256 checksum How to use checksums |
5a31113382823075056a46de42b21ed31372908f30d353c11ca01ec447ca2829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|