-
Notifications
You must be signed in to change notification settings - Fork 1.6k
CI: add typos-action to GHA #1679
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: development
Are you sure you want to change the base?
Conversation
This should help from now to avoid typos in code and documentation. |
@ccoVeille how funny - the CI definitely overdid its job here! 😂 |
I convert it back to draft, as I have a few changes to do. It would help, and I need to fix a few things, instead of disabling words like "typ" and "ba", that detects real typo I don't want this PR to be merged yet. |
Code is now ready to be reviewed, and merged if accepted like this cc @Omar8345 if you are curious |
The configuration was updated to include the following: - ability to ignore specific line - ability to ignore block of code We can then disable the check in CONTRIBUTING.md file, which mentioned "favour" as British English spelling that should be avoided. We had to handle the exception.
This change might seems unnecessary, but it is important to enable spell check This would avoid false negative with "type" written "typ".
This change might seems unnecessary, but it is important to enable spell checker. "ba" would be reported as a typo of the verb "be" Also, the code is about basic auth provider, so using "bap" is not a problem
No code changes. This commit includes the following changes: - "ba" used instead of "be" in a comment - "typ" use instead of "type" in a JSON string in a test.
@Umang01-hash @vikash @coolwednesday @aryanmehrotra Is there anything blocking with thie PR? |
@ccoVeille nice catch for this issue, all the best |
@ccoVeille the PR looks good to me. |
I'm afraid I don't understand the point. Here is my understanding of the GitHub CI via GHA
Right now, there are two workflows:
I set up the typos workflows in a way typos detection is launched only once, in a way one PR containing one typo in the code and one typo in the documentation will lead to one job failing and not two, to make it easier to follow. Maybe I don't understand what you meant, |
@ccoVeille I meant to say let's add it as a step in existing workflow. |
As discussed here, and then on Discord in DM with @Umang01-hash , the current workflows files cannot help us. The main raison are that:
|
Hey @ccoVeille , I would suggest having the docs ignore filter added in each job, instead of at the very start of the workfkow file. In that case you would be able to control what jobs should run how. |
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.
Fixes #1666
It follows