update typos config, ignore torch.arange

This commit is contained in:
Laurent 2024-04-02 13:16:28 +00:00 committed by Laureηt
parent 1a8ea9180f
commit 328fcb8ed1

View file

@ -143,9 +143,12 @@ exclude_also = [
] ]
[tool.typos.default] [tool.typos.default]
extend-words = { adaptee = "adaptee" }
extend-ignore-identifiers-re = ["NDArray*", "interm", "af000ded"] 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] [tool.pytest.ini_options]
filterwarnings = [ filterwarnings = [
"ignore::UserWarning:segment_anything_hq.modeling.tiny_vit_sam.*", "ignore::UserWarning:segment_anything_hq.modeling.tiny_vit_sam.*",