diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 141352e5015e..33039517a44b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,8 @@ jobs: - name: Check formatting uses: dprint/check@v2.3 + with: + dprint-version: 0.50.1 typos: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 9345895c48c6..e94b1ead7322 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ The course is built using a few tools: - [mdbook-exerciser](mdbook-exerciser/) - [mdbook-course](mdbook-course/) - [mdbook-linkcheck2](https://github.com/marxin/mdbook-linkcheck2) +- [dprint](https://dprint.dev/) First install Rust by following the instructions on https://rustup.rs/. Then clone this repository: diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 6a469b46484c..a28d96467182 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -104,6 +104,7 @@ fn install_tools() -> Result<()> { vec!["mdbook-i18n-helpers", "--locked", "--version", "0.3.6"], vec!["i18n-report", "--locked", "--version", "0.2.0"], vec!["mdbook-linkcheck2", "--locked", "--version", "0.9.1"], + vec!["dprint", "--locked", "--version", "0.50.1"], // Mdbook-exerciser and mdbook-course are located in this repository. // To make it possible to install them from any directory we need to // specify their path from the workspace root.