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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mdformat_pyproject-0.0.1.tar.gz.

File metadata

  • Download URL: mdformat_pyproject-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for mdformat_pyproject-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a2a03b8f77ec43a60060ab5da4402f613c7d83eca51ff9f19373d590ecdba3aa
MD5 8a4f479c17b540ce6bc670f7e8c36185
BLAKE2b-256 1f561b75e565906412087940e065106a9e5953419c7db81bb534dd76d6db6324

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mdformat_pyproject-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35fe74984ca86c3c5219280be7ea8a161fdc0d0a27bd0a788dcec5d9e322a871
MD5 eb9115b00232ba1ff2c3d5802a4e5114
BLAKE2b-256 ff129a6531cf77bfa4f734372ab3948400d839c2ff64039a8b3ec19e2d694537

See more details on using hashes here.

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