From 6bad7f3d3c39e085d3c089dc9ac8ea292ad6f69a Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Sat, 20 Jul 2024 07:10:26 +0200 Subject: [PATCH] chore(typos): Add typos hook plus some fixes (#637) * fix(typos): Add typos hook plus some fixes * Use latest version of hook --- .aspect/bazelrc/correctness.bazelrc | 2 +- .pre-commit-config.yaml | 9 +++++++++ README.md | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.aspect/bazelrc/correctness.bazelrc b/.aspect/bazelrc/correctness.bazelrc index a599f6d..f381062 100644 --- a/.aspect/bazelrc/correctness.bazelrc +++ b/.aspect/bazelrc/correctness.bazelrc @@ -68,7 +68,7 @@ build --incompatible_default_to_explicit_init_py common --incompatible_disallow_empty_glob # Always download coverage files for tests from the remote cache. By default, coverage files are not -# downloaded on test result cahce hits when --remote_download_minimal is enabled, making it impossible +# downloaded on test result cache hits when --remote_download_minimal is enabled, making it impossible # to generate a full coverage report. # Docs: https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs # detching remote cache results diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d210d6e..1eb5696 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,6 +36,15 @@ repos: exclude: &exclude_pattern "^(docs|e2e|lib/tests)/" - id: mixed-line-ending - id: trailing-whitespace + - repo: https://github.com/crate-ci/typos + rev: v1.23.2 + hooks: + - id: typos + exclude: | + (?x)^( + docs/| + lib/ + ) - repo: local hooks: - id: aspect_rules_lint diff --git a/README.md b/README.md index 4edcb91..36eff00 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ For example to use commit `abc123`: ## Writing rules -- [expand_make_vars](docs/expand_make_vars.md) Perform make variable and location substitions in strings.. +- [expand_make_vars](docs/expand_make_vars.md) Perform make variable and location substitutions in strings.. - [expand_template](docs/expand_template.md) Substitute templates with make variables, location resolves, stamp variables, and arbitrary strings. - [paths](docs/paths.md) Useful path resolution methods. - [transitions](docs/transitions.md) Transition sources to a provided platform.