From 28ff5c9427f5470002e0a88f9e31243d40fd1e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 31 Aug 2022 23:15:59 +0300 Subject: [PATCH] test(pre-commit): exclude tests/cassettes/ from typos This would be better placed in `.typos.toml` rather than pre-commit config, but at time of writing, `typos` doesn't honor exclusions for explicitly passed files: https://github.com/crate-ci/typos/issues/347 --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e6dbb74..03aa6c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,6 +65,8 @@ repos: rev: v1.12.0 hooks: - id: typos + # TODO: to .typos.toml, https://github.com/crate-ci/typos/issues/347 + exclude: ^tests/cassettes/ - repo: https://github.com/jorisroovers/gitlint rev: v0.15.1