From b0fd3d524f5eac2a59ce217401240f0a793243d3 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Sun, 20 Oct 2024 20:13:14 +0300 Subject: [PATCH] Typo-check .hidden files (#16035) # Objective Typo-check .hidden files like `.cargo/config_fast_builds.toml` and `.github/*`. Context: https://github.com/bevyengine/bevy/pull/16025. ## Solution - Add `ignore-hidden = false` to `typos.toml` to override the default value of `true`. - Add an exception to keep `.git/` ignored in `typos.toml`. - Fix newly-found typos so CI passes. ## Testing Running `typos` locally finds no further typos. --- .github/workflows/ci.yml | 4 ++-- typos.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95d9ad186f..90c254a23c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: run: cargo run -p ci -- lints miri: - # Explicity use macOS 14 to take advantage of M1 chip. + # Explicitly use macOS 14 to take advantage of M1 chip. runs-on: macos-14 timeout-minutes: 60 steps: @@ -254,7 +254,7 @@ jobs: echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode' run-examples-macos-metal: - # Explicity use macOS 14 to take advantage of M1 chip. + # Explicitly use macOS 14 to take advantage of M1 chip. runs-on: macos-14 timeout-minutes: 30 steps: diff --git a/typos.toml b/typos.toml index 89ebdedcb8..2196d806ad 100644 --- a/typos.toml +++ b/typos.toml @@ -3,7 +3,9 @@ extend-exclude = [ "*.pbxproj", # metadata file "*.patch", # Automatically generated files that should not be manually modified. "*.bin", # Binary files + ".git/", # Version control files ] +ignore-hidden = false # Corrections take the form of a key/value pair. The key is the incorrect word # and the value is the correct word. If the key and value are the same, the