pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.2k stars 694 forks source link

feat: add a simple HTML check pre-commit hook #1072

Closed bernardpaulus closed 2 months ago

bernardpaulus commented 2 months ago

Hello,

I needed a simple, basic validation for HTML files.

Here is a proposal for a pre-commit hook check-html.

Untested (I don't know how to run the unit tests locally) - let's see how it fares in the CI pipeline

asottile commented 2 months ago

hi please create issues to discuss features before spending time on them

I don't think this makes sense here. there are many pre-existing html validators (w3c comes to mind) which are going to do a much better job than python's html.parser