mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -05:00
Merge pull request #566 from epage/numpy
fix(config): Don't correct `NDArray` in Python
This commit is contained in:
commit
2e84db3a45
1 changed files with 14 additions and 0 deletions
|
@ -224,6 +224,20 @@ impl TypeEngineConfig {
|
|||
..Default::default()
|
||||
},
|
||||
});
|
||||
patterns
|
||||
.entry("py".into())
|
||||
.or_insert_with(|| GlobEngineConfig {
|
||||
extend_glob: Vec::new(),
|
||||
engine: EngineConfig {
|
||||
dict: Some(DictConfig {
|
||||
extend_identifiers: maplit::hashmap! {
|
||||
"NDArray".into() => "NDArray".into(),
|
||||
},
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
||||
},
|
||||
});
|
||||
patterns
|
||||
.entry("cert".into())
|
||||
.or_insert_with(|| GlobEngineConfig {
|
||||
|
|
Loading…
Reference in a new issue