mdformat_pyproject


Namemdformat_pyproject JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryAn mdformat plugin for...
upload_time2023-01-03 22:19:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords mdformat markdown markdown-it
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mdformat-pyproject

[![Build Status][ci-badge]][ci-link] [![codecov.io][cov-badge]][cov-link]
[![PyPI version][pypi-badge]][pypi-link]

An [mdformat] plugin to read configuration from `pyproject.toml`.

## Install

Install with:

```bash
pip install mdformat-pyproject
```

## Usage

After installing this plugin, the [mdformat configuration][mdformat-configuration] can be added in
a new `[tool.mdformat]` section inside the `pyproject.toml` file.

```toml
[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`:

```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
```

[ci-badge]: https://github.com/csala/mdformat-pyproject/workflows/CI/badge.svg?branch=master
[ci-link]: https://github.com/csala/mdformat/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush
[cov-badge]: https://codecov.io/gh/csala/mdformat-pyproject/branch/master/graph/badge.svg
[cov-link]: https://codecov.io/gh/csala/mdformat-pyproject
[mdformat]: https://github.com/executablebooks/mdformat
[mdformat-configuration]: https://mdformat.readthedocs.io/en/stable/users/configuration_file.html
[pre-commit]: https://pre-commit.com
[pypi-badge]: https://img.shields.io/pypi/v/mdformat-pyproject.svg
[pypi-link]: https://pypi.org/project/mdformat-pyproject

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mdformat_pyproject",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "mdformat,markdown,markdown-it",
    "author": null,
    "author_email": "Carles Sala <csala@csail.mit.com>",
    "download_url": "https://files.pythonhosted.org/packages/1f/56/1b75e565906412087940e065106a9e5953419c7db81bb534dd76d6db6324/mdformat_pyproject-0.0.1.tar.gz",
    "platform": null,
    "description": "# mdformat-pyproject\n\n[![Build Status][ci-badge]][ci-link] [![codecov.io][cov-badge]][cov-link]\n[![PyPI version][pypi-badge]][pypi-link]\n\nAn [mdformat] plugin to read configuration from `pyproject.toml`.\n\n## Install\n\nInstall with:\n\n```bash\npip install mdformat-pyproject\n```\n\n## Usage\n\nAfter installing this plugin, the [mdformat configuration][mdformat-configuration] can be added in\na new `[tool.mdformat]` section inside the `pyproject.toml` file.\n\n```toml\n[tool.mdformat]\nwrap = \"keep\"       # possible values: {\"keep\", \"no\", INTEGER}\nnumber = false      # possible values: {false, true}\nend_of_line = \"lf\"  # possible values: {\"lf\", \"crlf\", \"keep\"}\n```\n\n## Usage as a [pre-commit] hook\n\nAdd the following to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/executablebooks/mdformat\n  rev: 0.7.13  # Use the ref you want to point at\n  hooks:\n    - id: mdformat\n      additional_dependencies:\n        - mdformat-pyproject\n```\n\n[ci-badge]: https://github.com/csala/mdformat-pyproject/workflows/CI/badge.svg?branch=master\n[ci-link]: https://github.com/csala/mdformat/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush\n[cov-badge]: https://codecov.io/gh/csala/mdformat-pyproject/branch/master/graph/badge.svg\n[cov-link]: https://codecov.io/gh/csala/mdformat-pyproject\n[mdformat]: https://github.com/executablebooks/mdformat\n[mdformat-configuration]: https://mdformat.readthedocs.io/en/stable/users/configuration_file.html\n[pre-commit]: https://pre-commit.com\n[pypi-badge]: https://img.shields.io/pypi/v/mdformat-pyproject.svg\n[pypi-link]: https://pypi.org/project/mdformat-pyproject\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "An mdformat plugin for...",
    "version": "0.0.1",
    "split_keywords": [
        "mdformat",
        "markdown",
        "markdown-it"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ff129a6531cf77bfa4f734372ab3948400d839c2ff64039a8b3ec19e2d694537",
                "md5": "eb9115b00232ba1ff2c3d5802a4e5114",
                "sha256": "35fe74984ca86c3c5219280be7ea8a161fdc0d0a27bd0a788dcec5d9e322a871"
            },
            "downloads": -1,
            "filename": "mdformat_pyproject-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eb9115b00232ba1ff2c3d5802a4e5114",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4696,
            "upload_time": "2023-01-03T22:19:47",
            "upload_time_iso_8601": "2023-01-03T22:19:47.195014Z",
            "url": "https://files.pythonhosted.org/packages/ff/12/9a6531cf77bfa4f734372ab3948400d839c2ff64039a8b3ec19e2d694537/mdformat_pyproject-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1f561b75e565906412087940e065106a9e5953419c7db81bb534dd76d6db6324",
                "md5": "8a4f479c17b540ce6bc670f7e8c36185",
                "sha256": "a2a03b8f77ec43a60060ab5da4402f613c7d83eca51ff9f19373d590ecdba3aa"
            },
            "downloads": -1,
            "filename": "mdformat_pyproject-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8a4f479c17b540ce6bc670f7e8c36185",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5502,
            "upload_time": "2023-01-03T22:19:48",
            "upload_time_iso_8601": "2023-01-03T22:19:48.645569Z",
            "url": "https://files.pythonhosted.org/packages/1f/56/1b75e565906412087940e065106a9e5953419c7db81bb534dd76d6db6324/mdformat_pyproject-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 22:19:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "mdformat_pyproject"
}
        
Elapsed time: 0.02503s