Skip to main content

An mdformat plugin for...

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: 0.7.13  # 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.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

mdformat_pyproject-0.0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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