lasp / developer-guide

Guidelines for software developers at LASP
MIT License
1 stars 4 forks source link

pre-commit hooks for Markdown and/or ReStructured text #27

Open bourque opened 2 months ago

bourque commented 2 months ago

Perhaps there are some pre-commit hooks out there that check for mistakes in Markdown and ReStructured Text files that could help us out here

bourque commented 1 month ago

Suggestions from ChatGPT:

and checking for empty files:

-   repo: local
    hooks:
    -   id: check-empty-files
        name: Check for Empty Files
        entry: bash -c 'if [ ! -s "$1" ]; then echo "Empty file: $1" && exit 1; fi' --
        language: system
        types: [text]