Skip to content

Add formatting to pre commit#468

Merged
fsimonis merged 5 commits intoprecice:developfrom
fsimonis:add-formatting-to-pre-commit
Mar 5, 2024
Merged

Add formatting to pre commit#468
fsimonis merged 5 commits intoprecice:developfrom
fsimonis:add-formatting-to-pre-commit

Conversation

@fsimonis
Copy link
Copy Markdown
Member

This PR adds clang-format and autopep8 pre-commit hooks and applies the formatting.

Also, the markdownlint hook doesn't work on Ubuntu 20.04 as @uekerman found out. I reverted to v0.30 which is known to work.

Next step would be to replace individual workflows with a pre-commit hook workflow.

Copy link
Copy Markdown
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense and is helpful, thanks!
We are using a different .clang-format in the OpenFOAM adapter (which we could also use here for the OpenFOAM files), but let's rather keep one central file, same as preCICE. In any case, formatting OpenFOAM source files is an upstream issue.

Let's merge this before we start getting conflicts in other PRs.

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.

2 participants