Spaces:
Running
Running
Fix typos workflow to handle LaTeX
Browse files- .github/workflows/typos.yaml +2 -0
- .typos.toml +18 -0
.github/workflows/typos.yaml
CHANGED
|
@@ -13,3 +13,5 @@ jobs:
|
|
| 13 |
uses: styfle/cancel-workflow-action@0.12.1
|
| 14 |
- uses: actions/checkout@v4
|
| 15 |
- uses: crate-ci/typos@v1.29.4
|
|
|
|
|
|
|
|
|
| 13 |
uses: styfle/cancel-workflow-action@0.12.1
|
| 14 |
- uses: actions/checkout@v4
|
| 15 |
- uses: crate-ci/typos@v1.29.4
|
| 16 |
+
with:
|
| 17 |
+
config: .typos.toml
|
.typos.toml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[default]
|
| 2 |
+
extend-ignore-re = [
|
| 3 |
+
# LaTeX math expressions
|
| 4 |
+
"\\\\\\[.*?\\\\\\]",
|
| 5 |
+
"\\\\\\(.*?\\\\\\)",
|
| 6 |
+
"\\$\\$.*?\\$\\$",
|
| 7 |
+
"\\$.*?\\$",
|
| 8 |
+
# LaTeX commands
|
| 9 |
+
"\\\\[a-zA-Z]+\\{.*?\\}",
|
| 10 |
+
"\\\\[a-zA-Z]+",
|
| 11 |
+
# LaTeX subscripts and superscripts
|
| 12 |
+
"_\\{.*?\\}",
|
| 13 |
+
"\\^\\{.*?\\}"
|
| 14 |
+
]
|
| 15 |
+
|
| 16 |
+
# You can also exclude specific files or directories if needed
|
| 17 |
+
# [files]
|
| 18 |
+
# extend-exclude = ["*.tex", "docs/*.md"]
|