Skip to main content

An mdformat plugin for any language supported by clang-format

Project description

mdformat-clang

Build Status codecov.io PyPI version

An mdformat plugin for clang-format.

Supports all of the languages supported by clang-format with the following markdown tags:

  • cpp
  • cxx
  • c++
  • c
  • csharp
  • c#"
  • cs
  • java
  • javascript
  • typescript
  • ts
  • json
  • json-object
  • objc
  • obj-c
  • objectivec
  • objective-c
  • protobuf
  • proto
  • tablegen
  • td
  • verilog
  • v
  • objective-c++
  • objectivec++
  • obj-c++
  • objc++

Development

This package utilises flit as the build engine, and tox for test automation.

To install these development dependencies:

pip install tox

To run the tests:

tox

and with test coverage:

tox -e py-cov

The easiest way to write tests, is to edit tests/fixtures.md

To run the code formatting and style checks:

tox -e py-pre-commit

or directly

pip install pre-commit
pre-commit run --all

To run the pre-commit hook test:

tox -e py-hook

Publish to PyPi

Either use flit directly:

pip install flit
flit publish

or trigger the GitHub Action job, by creating a release with a tag equal to the version, e.g. v0.0.1.

Note, this requires generating an API key on PyPi and adding it to the repository Settings/Secrets, under the name PYPI_KEY.

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_clang-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

mdformat_clang-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mdformat_clang-0.0.1.tar.gz
Algorithm Hash digest
SHA256 502b8d912288088a0464e8b20f8b18ea14aa651029bf0dfa8fb88d2006729823
MD5 5f3ed7a4b4b200f1ef9f0768c133a414
BLAKE2b-256 e1f22dd9d81bec2fcda786b223d4425bd33cd4eda8765ea6840cc575f0b14be1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mdformat_clang-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03876a9520df879d73cc0510c1fd396cd4c010bdffc3df009379e9dadb8fec4d
MD5 6a1210cd3bf06e0dfe74fa48813272b0
BLAKE2b-256 50a8e7e3afca55363254b65b63405550ad60ee7c990e3771df550412fbba4c13

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