Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ jobs:
- uses: paddyroddy/.github/actions/linting@232a2f3869501abb249d50e311179f98830c6481 # v0
with:
pre-commit-config: ./.pre-commit-config.yaml

# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/vale@d5aea086eaabccae4bcf39786ad5138b629755a6 # v0
Comment thread
paddyroddy marked this conversation as resolved.
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
!.github/styles/config/
!.github/styles/config/vocabularies/
!.github/styles/config/vocabularies/Base
.github/styles/*
.github/styles/config/*
.github/styles/config/vocabularies/*
30 changes: 30 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
StylesPath = .github/styles

# https://github.com/errata-ai/packages
Packages = proselint,\
write-good

[formats]
twee = md
Comment on lines +7 to +8
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure what is best to do here. Vale has a section in the docs of file formats https://vale.sh/docs/formats/front-matter, we don't even need to have one (although some features won't work if we don't). Ideally .twee would be close to one of them, but I'm not sure if it is?


[*.{md,twee}]
BasedOnStyles = proselint,\
Vale,\
write-good

# Disable
Vale.Spelling = NO
write-good.E-Prime = NO
write-good.Passive = NO
write-good.TooWordy = NO

# Ignore lines starting with GitHub alerts syntax
BlockIgnores = (?s)> \[!(CAUTION|IMPORTANT|NOTE|TIP|WARNING)\](\n|$)

# `vale sync` in CI means the packages are then linted, so turn them off
[.github/styles/**]
BasedOnStyles =

# Don't modify generated files
[**/{CODE_OF_CONDUCT,LICENSE}*]
BasedOnStyles =
2 changes: 1 addition & 1 deletion story/choose-a-database.twee
Comment thread
paddyroddy marked this conversation as resolved.
Comment thread
paddyroddy marked this conversation as resolved.
Comment thread
paddyroddy marked this conversation as resolved.
Comment thread
paddyroddy marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Is your data media files? (Video, pictures, PDFs, specialised formats like nifti

:: network-yes {"position":"1050,1050","size":"100,100"}
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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VSCode didn't like this line ending

Consider using a <a href="https://en.wikipedia.org/wiki/Graph_database">Graph database</a>.


Expand Down
Loading