From 3fc0c6869d3b81717d24beafa595377995885ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Maita?= <47983254+mnmaita@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:31:11 +0200 Subject: [PATCH] Bump crate-ci/typos from 1.19.0 to 1.20.4 (#12907) # Objective - Adopting https://github.com/bevyengine/bevy/pull/12903. ## Solution - Bump crate-ci/typos from 1.19.0 to 1.20.4. - Fixed a typo in `crates/bevy_pbr/src/render/pbr_functions.wgsl` file. - Added "PNG", "iy" and "SME" as exceptions to prevent false positives. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- crates/bevy_pbr/src/render/pbr_functions.wgsl | 2 +- typos.toml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc4f2beeea..484f19f8f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,7 +214,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Check for typos - uses: crate-ci/typos@v1.19.0 + uses: crate-ci/typos@v1.20.4 - name: Typos info if: failure() run: | diff --git a/crates/bevy_pbr/src/render/pbr_functions.wgsl b/crates/bevy_pbr/src/render/pbr_functions.wgsl index 1c60294466..bd1173f2b5 100644 --- a/crates/bevy_pbr/src/render/pbr_functions.wgsl +++ b/crates/bevy_pbr/src/render/pbr_functions.wgsl @@ -147,7 +147,7 @@ fn calculate_view( // Orthographic view vector V = normalize(vec3(view_bindings::view.view_proj[0].z, view_bindings::view.view_proj[1].z, view_bindings::view.view_proj[2].z)); } else { - // Only valid for a perpective projection + // Only valid for a perspective projection V = normalize(view_bindings::view.world_position.xyz - world_position.xyz); } return V; diff --git a/typos.toml b/typos.toml index 066195a7cf..0ca136c17c 100644 --- a/typos.toml +++ b/typos.toml @@ -11,7 +11,9 @@ extend-exclude = [ # Match Whole Word - Case Sensitive [default.extend-identifiers] +iy = "iy" # Variable name used in bevy_gizmos. Probably stands for "y-axis index", as it's being used in loops. ser = "ser" # ron::ser - Serializer +SME = "SME" # Subject Matter Expert Sur = "Sur" # macOS Big Sur - South # Match Inside a Word - Case Insensitive @@ -23,6 +25,7 @@ TOI = "TOI" # Time of impact extend-ignore-identifiers-re = [ "NDK", # NDK - Native Development Kit "inventario", # Inventory in Portuguese + "PNG", # PNG - Portable Network Graphics file format # Used in bevy_mikktspace "iFO", "vOt",