Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vale for prose checking #135

Merged
merged 8 commits into from
Nov 22, 2023
Merged

Vale for prose checking #135

merged 8 commits into from
Nov 22, 2023

Conversation

regularfry
Copy link
Contributor

Description

Vale is a tool for performing a certain set of style checks, which this PR introduces for markdown files only. Vale can scan code comments, but as an initial validation we should limit the scope.

WIP for the moment while I sort out github action integration.

Context

We want to be sure that our documentation is consistent and readable.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@regularfry
Copy link
Contributor Author

I've double-checked that we pick up vale failures with a test PR here. That was successful, so I think we can say this is no longer WIP.

@regularfry regularfry changed the title WIP Vale for prose checking Vale for prose checking Oct 6, 2023
Copy link
Contributor

@stefaniuk stefaniuk left a comment

Choose a reason for hiding this comment

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

This is a good PR. Thanks @regularfry

Should we configure this check as a git hook as well? I.e. to add it to the scripts/config/pre-commit.yaml file.

scripts/tests/test.mk Outdated Show resolved Hide resolved
@regularfry regularfry requested a review from stefaniuk November 2, 2023 14:17
This patch adds a `test-style` make target that runs the `vale` prose checker.
It also fixes an annoyance where `vale` would complain about not being given
any files, for the case where either nothing was staged, or nothing unstaged
had been changed.
Copy link
Contributor

@stefaniuk stefaniuk left a comment

Choose a reason for hiding this comment

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

Nice one, thanks @regularfry

@stefaniuk stefaniuk added this pull request to the merge queue Nov 22, 2023
Merged via the queue into main with commit 533f4cf Nov 22, 2023
23 checks passed
@stefaniuk stefaniuk deleted the vale branch November 22, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants