From 55af9b306c4ada138941a7a60a61c0d79efa4708 Mon Sep 17 00:00:00 2001 From: Pavel Nikonorov <4646953+pavelnikonorov@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:54:54 +0400 Subject: [PATCH] rustfmt.toml: ignore code formatting checks of the autogenerated models --- .github/workflows/ci.yml | 6 +++++- rustfmt.toml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17d6406..01018e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,4 +109,8 @@ jobs: - name: Format run: | . $HOME/.cargo/env - cargo fmt \ No newline at end of file + # rustup install nightly – fails for some reason + # rustup default nightly + cargo fmt -- ./lib/src/serviceinfo/models # workaround to fix autogenerated code formatting + cargo fmt -- ./lib/src/tes/models + cargo fmt -- --check # --config-path ./rustfmt.toml \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..62437b6 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,4 @@ +ignore = [ + "lib/serviceinfo/models", + "lib/tes/models", +] \ No newline at end of file