Merge pull request #1964 from Chris-Peterson444/pre-commit-spelling

pre-commit: add spelling check
This commit is contained in:
Chris Peterson 2024-04-10 14:18:25 -07:00 committed by GitHub
commit 979f546f27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View File

@ -1,11 +1,20 @@
files: "(console_conf|subiquity|subiquitycore|system_setup)"
files: "(console_conf|subiquity|subiquitycore|system_setup|doc)"
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
files: "(console_conf|subiquity|subiquitycore|system_setup)"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
files: "(console_conf|subiquity|subiquitycore|system_setup)"
- repo: local
hooks:
- id: doc-spelling
name: doc-spelling
language: system
entry: bash -c "cd doc/ && ./pre-commit-spell-check"
files: "doc/.*rst"

8
doc/pre-commit-spell-check Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Setup sphinx virtual env if it's not already
if [ ! -d .sphinx/venv ]; then
make install
fi
make spelling