mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-26 21:25:19 -04:00
precommit: Add simple Makefile formatter
This commit is contained in:
parent
5c1a921a00
commit
e974820ca4
7 changed files with 105 additions and 57 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue