From 328fcb8ed125683267169e3e2b137e037c9c8af1 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 2 Apr 2024 13:16:28 +0000 Subject: [PATCH] update typos config, ignore `torch.arange` --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 47ad7de..041b5de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,9 +143,12 @@ exclude_also = [ ] [tool.typos.default] -extend-words = { adaptee = "adaptee" } extend-ignore-identifiers-re = ["NDArray*", "interm", "af000ded"] +[tool.typos.default.extend-words] +adaptee = "adaptee" # Common name for an adapter's target +arange = "arange" # Commonly used via `from torch import arange` + [tool.pytest.ini_options] filterwarnings = [ "ignore::UserWarning:segment_anything_hq.modeling.tiny_vit_sam.*",