From 07c442c8ffcdb9329c7d7e0b8ad595e9d6b76c60 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 17 Feb 2025 09:55:17 +0100 Subject: [PATCH] Skip target in taplo checks `target` can contain arbitrary files. Contents depend on tools used and tests run, and may even include `Cargo.toml` files that are not properly formatted. The taplo check should never complain on files that are not meant to be part of the repository, and `target` contents clearly falls into that category. `trybuild` is an example of a tool that creates cargo files inside target directory. --- taplo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/taplo.toml b/taplo.toml index b7089c501680..47b33161c37e 100644 --- a/taplo.toml +++ b/taplo.toml @@ -18,6 +18,7 @@ ## https://taplo.tamasfe.dev/configuration/file.html include = ["**/Cargo.toml"] +exclude = ["target/*"] [formatting] # Align consecutive entries vertically.