-
Notifications
You must be signed in to change notification settings - Fork 40
Add Vale to RTD pre-commit #273
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍🏼
I moved the common vale files over here, and symlinked them into org/business |
The original changes were described here: readthedocs/readthedocs.org#12258 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this file in a PR, so we should reflect that here. But note that the filename is incorrect, it needs to be .yml
for vale to find it.
@@ -0,0 +1,9 @@ | |||
extends: substitution | |||
message: Use 'Single sign-on' instead of '%s' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note the message double substitution is important. Very silly this isn't just a default for the message
attr.
message: Use 'Single sign-on' instead of '%s' | |
message: Use '%s' instead of '%s' |
Single Sign on: Single sign-on | ||
single sign-on: Single sign-on | ||
single Sign-On: Single sign-on | ||
single Sign on: Single sign-on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this is substituting a capitalized version still. I fixed this using case insensitivity and exceptions:
Refs readthedocs/readthedocs.org#12257
Downstrream: