chore(typos): Add typos hook plus some fixes (#637)
* fix(typos): Add typos hook plus some fixes
* Use latest version of hook
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 @@
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 @@
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 @@
## 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.