Skip to content

Commit 3508327

Browse files
paddyroddyrazekmh
andauthored
Add Vale for linting prose (#67)
Co-authored-by: Mahmoud Abdelrazek <[email protected]>
1 parent bc27dab commit 3508327

4 files changed

Lines changed: 46 additions & 5 deletions

File tree

.github/workflows/linting.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ jobs:
1616
- uses: paddyroddy/.github/actions/linting@232a2f3869501abb249d50e311179f98830c6481 # v0
1717
with:
1818
pre-commit-config: ./.pre-commit-config.yaml
19+
20+
# yamllint disable-line rule:line-length
21+
- uses: paddyroddy/.github/actions/vale@d5aea086eaabccae4bcf39786ad5138b629755a6 # v0
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
!.github/styles/config/
2+
!.github/styles/config/vocabularies/
3+
!.github/styles/config/vocabularies/Base
4+
.github/styles/*
5+
.github/styles/config/*
6+
.github/styles/config/vocabularies/*
17
website/index.html

.vale.ini

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
StylesPath = .github/styles
2+
3+
# https://github.com/errata-ai/packages
4+
Packages = proselint,\
5+
write-good
6+
7+
[formats]
8+
twee = md
9+
10+
[*.{md,twee}]
11+
BasedOnStyles = proselint,\
12+
Vale,\
13+
write-good
14+
15+
# Disable
16+
Vale.Spelling = NO
17+
write-good.E-Prime = NO
18+
write-good.Passive = NO
19+
write-good.TooWordy = NO
20+
21+
# Ignore lines starting with GitHub alerts syntax
22+
BlockIgnores = (?s)> \[!(CAUTION|IMPORTANT|NOTE|TIP|WARNING)\](\n|$)
23+
24+
# `vale sync` in CI means the packages are then linted, so turn them off
25+
[.github/styles/**]
26+
BasedOnStyles =
27+
28+
# Don't modify generated files
29+
[**/{CODE_OF_CONDUCT,LICENSE}*]
30+
BasedOnStyles =

story/choose-a-database.twee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ Can you structure your data well in rows and columns?
6161

6262

6363
:: explore-no {"position":"1325,825","size":"100,100"}
64-
But you said you didn't know what questions to ask!
64+
You said you didn't know what questions to ask!
6565

6666
If you know your wishes, [[ask the genie|question-yes]]!
6767

6868

6969

7070
:: explore-yes {"position":"1325,925","size":"100,100"}
71-
You put the lamp in your pack and continue down the road. After some time you arrive at a watering hole. There is a friendly looking elephant drinking, and a dolphin pops its head above the water.
71+
You put the lamp in your pack and continue down the road. After some time you arrive at a watering hole. A friendly looking elephant is drinking, and a dolphin pops its head above the water.
7272

73-
...choose a <a href="https://en.wikipedia.org/wiki/Relational_database">relational DB</a>.
73+
choose a <a href="https://en.wikipedia.org/wiki/Relational_database">relational DB</a>.
7474

7575
Popular choices: Postgres and MySQL.
7676

@@ -124,7 +124,7 @@ Is your data media files? (Video, pictures, PDFs, specialised formats like nifti
124124

125125
:: network-yes {"position":"1050,1050","size":"100,100"}
126126
The wizard calls his familiar, a large fuzzy spider. It hands you a magical spider web which speeds up the process of cataloguing the spells.
127-
127+
128128
Consider using a <a href="https://en.wikipedia.org/wiki/Graph_database">Graph database</a>.
129129

130130

@@ -179,7 +179,7 @@ Do you know exactly what question to ask? (For example, how many students have a
179179

180180

181181
:: text-no {"position":"900,1475","size":"100,100"}
182-
You find a mysterious map in the library. After following it, you arrive at a watering hole. There is a friendly looking elephant drinking, and a dolphin pops its head above the water.
182+
You find a mysterious map in the library. After following it, you arrive at a watering hole, where a friendly looking elephant is drinking and a dolphin pops its head above the water.
183183

184184
Use a <a href="https://en.wikipedia.org/wiki/Relational_database">relational database</a>. Popular choices: <a href="https://en.wikipedia.org/wiki/PostgreSQL">Postgres</a> and <a href="https://en.wikipedia.org/wiki/MySQL">MySQL</a>.
185185

0 commit comments

Comments
 (0)