[CodeStyle][Typos] 加入--force-exclude
参数以支持 files.extend-exclude
来忽略对特定文件的 typo 检查
#69530
+7
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Category
User Experience
PR Types
Others
Description
加入
--force-exclude
参数以支持files.extend-exclude
来忽略对特定文件的 typo 检查。并且以对
test/dataset/imikolov_test.py
(存在aer
的typo error) 进行测试和示例。之后直接往这个列表里面添加的文件路径即可,所有指定文件将不再进行 typos 检查:
_typos.toml
:值得注意的是,在我的机器上进行测试,似乎需要先提交
_typos.toml
的修改后,才会生效。