Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate PR suggestions when formatting is wrong #2396

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,21 @@ jobs:
run: |
sudo apt update
sudo apt install gettext yapf3
curl -fsSL https://dprint.dev/install.sh | sh
echo "/home/runner/.dprint/bin" >> $GITHUB_PATH

- name: Install nightly rustfmt
run: |
rustup default nightly
rustup component add rustfmt

- name: Check formatting
uses: dprint/[email protected]
- name: Reformat
run: dprint fmt

- uses: parkerbxyz/suggest-changes@v1

- name: Check if there were any changes
run: git diff --exit-code

typos:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,20 @@ Articles and blog posts from around the web which cover Comprehensive Rust:
_[In Search of Rust Developers, Companies Turn to In-House Training](https://www.darkreading.com/application-security/google-microsoft-take-refuge-in-rust-languages-better-security)_.
About how Microsoft, Google, and others are training people in Rust.

## Building
Building
--------
mgeisler marked this conversation as resolved.
Show resolved Hide resolved

The course is built using a few tools:

- [mdbook](https://github.com/rust-lang/mdBook)
- [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
* [mdbook](https://github.com/rust-lang/mdBook)
* [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
- [mdbook-i18n-helpers and i18n-report](https://github.com/google/mdbook-i18n-helpers)
- [mdbook-exerciser](mdbook-exerciser/)
- [mdbook-course](mdbook-course/)
mgeisler marked this conversation as resolved.
Show resolved Hide resolved
mgeisler marked this conversation as resolved.
Show resolved Hide resolved

In addition,
[mdbook-linkcheck](https://github.com/Michael-F-Bryan/mdbook-linkcheck) checks
the internal links.
the internal links.
mgeisler marked this conversation as resolved.
Show resolved Hide resolved

First install Rust by following the instructions on https://rustup.rs/. Then
clone this repository:
Expand Down
Loading