From adfd866ed9bb4537b83903c24e3a6ae79fd3ff6d Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 19 May 2023 08:18:25 -0500 Subject: [PATCH] test(cli): Check more former false positives --- crates/typos-cli/tests/cmd/false-positives.in/README.md | 6 ++++++ crates/typos-cli/tests/cmd/false-positives.in/sample.py | 1 + crates/typos-cli/tests/cmd/false-positives.in/sample.rs | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/false-positives.in/sample.py create mode 100644 crates/typos-cli/tests/cmd/false-positives.in/sample.rs diff --git a/crates/typos-cli/tests/cmd/false-positives.in/README.md b/crates/typos-cli/tests/cmd/false-positives.in/README.md index f16cfc8..5871723 100644 --- a/crates/typos-cli/tests/cmd/false-positives.in/README.md +++ b/crates/typos-cli/tests/cmd/false-positives.in/README.md @@ -1 +1,7 @@ add-ons should not be corrected to add-owns + +git glossary has both commitish and committish, so don't correct them + +HTTP_REFERER is a valid HTTP header field + +It should be reasonable to talk about `` diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.py b/crates/typos-cli/tests/cmd/false-positives.in/sample.py new file mode 100644 index 0000000..dcf674d --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.py @@ -0,0 +1 @@ +from numpy.typing import NDArray # should work diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.rs b/crates/typos-cli/tests/cmd/false-positives.in/sample.rs new file mode 100644 index 0000000..de110f9 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.rs @@ -0,0 +1,3 @@ +use serde::ser; + +use flate2::*;