From 05b42056ffddcc586e391a7a9041340f671c400a Mon Sep 17 00:00:00 2001 From: konstin Date: Thu, 19 Sep 2024 13:04:06 +0200 Subject: [PATCH] Add prettier for markdown files Prettier adds consistent formatting to markdown files. Preparation to adding a changelog --- .github/workflows/CI.yml | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cc1fc15..a891239 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,9 +42,10 @@ jobs: - run: cargo clippy --all-features --locked -- -D warnings fmt: - name: Rustfmt + name: Format runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: rustup component add rustfmt - run: cargo fmt --all -- --check + - run: npx prettier --check "**/*.md" diff --git a/README.md b/README.md index 4e302dc..71f46a3 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ A Rust port of the [pkginfo](https://pypi.org/project/pkginfo/) Python library. ## Installation -Add it to your ``Cargo.toml``: +Add it to your `Cargo.toml`: ```toml [dependencies] python-pkginfo = "0.6" ``` -then you are good to go. If you are using Rust 2015 you have to add ``extern crate python_pkginfo`` to your crate root as well. +then you are good to go. If you are using Rust 2015 you have to add `extern crate python_pkginfo` to your crate root as well. ## Example