Skip to content

Precommit: Prettify module_vdw - #8152

Draft
Growl1234 wants to merge 5 commits into
deepmodeling:developfrom
Growl1234:precommit
Draft

Growl1234 wants to merge 5 commits into
deepmodeling:developfrom
Growl1234:precommit

Conversation

@Growl1234

@Growl1234 Growl1234 commented Oct 15, 2026 •

Copy link
Copy Markdown

This is a simple example to show how a precommit hook works; it's intended as a draft. Unfortunately, since precommit hooks are left deactivated for a long while, un-retiring the hook would require a lot of steps (in order to prevent the change in each commit to be too large)...

I dropped clang-tidy as it tends to bring real changes that might even make a compilation fail (while clang-format cannot). Also dropped some other obsolete or unnecessary hooks.

Here's the command I used for the prettify here:

pre-commit run --files source/source_hamilt/module_vdw/*
pre-commit run --files source/source_hamilt/module_vdw/test/*

once every source file is properly format, the command should turn to pre-commit run -a for PR authors.

@Growl1234
Growl1234 marked this pull request as draft October 15, 2026 15:39

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant