python,misc: Add check-ast hook to pre-commit

This verifies all Python files have a AST indicating they valid Python.
No file in the repo fails this test, so it triggered no changes.

Change-Id: Ifd7998268df6be766d92c19cfc7f1cfdf8ed103e
This commit is contained in:
Bobby R. Bruce
2023-10-05 19:26:01 -07:00
parent d559c24ac2
commit 132ec10818

View File

@@ -62,6 +62,7 @@ repos:
- id: check-added-large-files
- id: mixed-line-ending
args: [--fix=lf]
- id: check-ast
- id: check-case-conflict
- id: requirements-txt-fixer
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt