Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bourque opened this issue Aug 28, 2024 · 1 comment
Open

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

bourque opened this issue Aug 28, 2024 · 1 comment

Comments

@bourque
Copy link
Member

bourque commented Aug 28, 2024

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
Copy link
Member Author

bourque commented Sep 23, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant