[skip jenkins] Add spellchecker to pre-commit hooks#706
Conversation
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
tlvu
left a comment
There was a problem hiding this comment.
LGTM but I just want to ensure the spell-checker will not touch the code (variable name) but only comments? And what if we have a "look-a-like" product, ex: if ever Ngix actually exists, will it still auto-correct to Nginx?
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/4287/Result 🆘 ABORTEDBIRDHOUSE_DEPLOY_BRANCH : spelling DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-154.rdext.crim.ca
|
This is solely a spellchecker. It doesn't perform any corrections. All corrections (or exceptions) need to be done manually.
We would then add 'ngix' to the |
OH !!! I thought all the corrections in here are made by the new spell-checker ! I've seen you added other pre-commit hook in other repos that directly clean some metadata in notebooks when they are pushed to a PR so I though this one does the same. |
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/4290/Result ❌ FAILUREBIRDHOUSE_DEPLOY_BRANCH : spelling DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-118.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/827/NOTEBOOK TEST RESULTS |
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/4330/Result ❌ FAILUREBIRDHOUSE_DEPLOY_BRANCH : spelling DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-118.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/851/NOTEBOOK TEST RESULTS |
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/4331/Result ❌ FAILUREBIRDHOUSE_DEPLOY_BRANCH : spelling DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-216.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/852/NOTEBOOK TEST RESULTS |
Overview
This PR adds a spellchecking tool to the
pre-commithooks and addresses several typos throughout the code base.The dictionary of ignored words can either be passed via a newline-separated list of words or directly via command-line argument. The ignored-words-list argument can be found in the
pre-commithook.Misspelled words will be caught by the linting tools and will need to be addressed before other checks are performed.
Changes
Non-breaking changes
pre-commitcheck for common spelling mistakes.CHANGES.md.Additional Information
https://github.com/codespell-project/codespell
CI Operations
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false