Developers¤
This page contains essential information for developers who are contributing to this pattern.
pre-commit¤
This project uses pre-commit
as a mechanism to ensure code quality. pre-commit
is enforced on pull requests as part of the CI pipeline. Installing pre-commit into a developers environment ensures that the quality checks will pass before code is pushed to GitHub.
Install by:
pip install pre-commit
pre-commit install
developers can force pre-commit
to run across all files by running pre-commit run --all-files
. This will ensure every file is covered, including those which have already being committed. Standard runs will only check files with a change in git.
Documentation continuous integration checks¤
As part of the GitHub actions CICD projects there are a number of checks which inspect Markdown documents.
Validation can fail for a number of reasons:
- Spelling mistakes including use of colloquial terms e.g.
repo
versusrepository
by thesuperlinter
- Markdown document structure, enforced by the
pre-commit
and by thesuperlinter
- Unlinked or dead links in the documentation site.
Dealing with unexpected spelling 'mistakes'¤
If a false-positive occurs for spelling mistakes:
- Add the word to
known-words.txt
or; - If appropriate use inline
code
blocks to escape the word.