Skip to main content

An mdformat plugin for reading configuration from ``pyproject.toml`` files.

Project description

mdformat-pyproject

Build Status codecov.io PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdformat_pyproject-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdformat_pyproject-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for mdformat_pyproject-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be16ed754d42db5f5e376ccb9cdbdfefc7750f7f77eadddde37f99ab87272b54
MD5 3f7aafb392ad8315d10271d7a36a35bb
BLAKE2b-256 a7334c7400f8d2ed273d675e72f55c33e72e08e6224a35f184ffca8ae6d40d53

See more details on using hashes here.

File details

Details for the file mdformat_pyproject-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mdformat_pyproject-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92d849f5c587ec7dc74a8d240139d3a9ecb65ea553cdb11e01f927fc55f248ce
MD5 94cd606eda62d30d934343623eb839d6
BLAKE2b-256 5a31113382823075056a46de42b21ed31372908f30d353c11ca01ec447ca2829

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page