-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typos is a powerful source code spell checker. Adds a CI job that runs on every PR and push to master (but can also be run manually with workflow_dispatch) that checks for typos. Adds a config file .typos.toml that deals with false positives and only checks for top-level/one-level .mediawiki and .md files.
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[default] | ||
extend-ignore-re = [ | ||
# NOTE: use here for regex patterns | ||
"xpub.*", | ||
"xprv.*", | ||
"3.*", # address | ||
"5.*", # address | ||
"private_key .*", | ||
"privkey .*", | ||
"tt.*", # <tt> tags | ||
"code.*", # <code> tags | ||
"\\w*<sub>", # prefix for <sub> tags | ||
"OP_SUCCESSx|\\d+", | ||
"pay.*", | ||
"ser.*", | ||
"prefix.*", | ||
"value: .*", | ||
] | ||
|
||
[default.extend-words] | ||
# NOTE: use here for false-positives | ||
anc = "anc" | ||
PSBT = "PSBT" | ||
ser = "ser" | ||
# Names | ||
Atack = "Atack" | ||
Meni = "Meni" | ||
Ono = "Ono" | ||
|
||
[files] | ||
extend-exclude = [ | ||
"/*/*.csv", | ||
"/*.d*", | ||
"/*/*.d*", | ||
"/*/*.go", | ||
"/*/*.json", | ||
"/*/*/*.json", | ||
"/*/*.mod", | ||
"/*/*.proto", | ||
"/*/*.py", | ||
"scripts", | ||
"/*/*.s*", | ||
"/*/*.t*", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Contributing Guidelines | ||
|
||
Apart from following [BIP 2](./bip-0002.mediawiki), | ||
we do CI checks to ensure that the proposed BIPs do not have common typos. | ||
These checks are done using [`typos`](https://github.com/crate-ci/typos). | ||
To check for typos locally, | ||
install [`typos`](https://github.com/crate-ci/typos) | ||
and then run in the root directory: | ||
|
||
```bash | ||
typos | ||
``` |