precommit: Add simple Makefile formatter

This commit is contained in:
Ole Schuett 2022-02-06 14:13:52 +01:00 committed by Ole Schütt
parent 5c1a921a00
commit e974820ca4
7 changed files with 105 additions and 57 deletions

View file

@ -207,6 +207,9 @@ def process_file(fn, allow_modifications):
if re.match(r"./data/.*POTENTIALS?$", fn):
check_data_files()
if re.match(r".*/Makefile", fn):
run_local_tool("./tools/precommit/format_makefile.py", fn)
run_check_file_properties(fn)
new_content = Path(fn).read_bytes()