This directory provides one-click installation scripts for the repository
pre-commit hook. The hook runs pylint on staged Python files and
lizard on staged source files and markdownlint-cli2 on staged
Markdown files before a commit.
install.sh— Linux and macOS installerinstall.ps1— PowerShell installer for Windowsinstall.bat— Command Prompt installer for Windowsrun_pylint.py— shared pylint entry used by pre-commitrun_lizard.py— shared lizard entry used by pre-commit.pre-commit-config.yaml— root pre-commit hook definition.markdownlint.jsonc— shared Markdown lint rules
bash scripts/pre-commit/install.shpowershell -ExecutionPolicy Bypass -File scripts/pre-commit/install.ps1scripts\pre-commit\install.bat- Ensures
pre-commitis installed. - Installs the repository git hook.
- Installs hook environments and dependencies declared in the root
.pre-commit-config.yaml. - Uses the root
.pre-commit-config.yamlto runpylint,lizard, andmarkdownlint-cli2.
python -m pre_commit run --all-files