Skip to content

Add pre-commit support for clang-format - #117

Closed
Twon wants to merge 18 commits into
mainfrom
pre-commit-support
Closed

Twon wants to merge 18 commits into
mainfrom
pre-commit-support

Conversation

@Twon

@Twon Twon commented Oct 20, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

@Twon
Twon requested a review from Bronek October 20, 2024 10:42
@codecov

codecov Bot commented Oct 20, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.0%. Comparing base (2fd311c) to head (4ccfde9).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #117   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files          20       20           
  Lines         858      858           
  Branches      121      121           
=======================================
  Hits          858      858           

Impacted file tree graph

Comment thread .pre-commit-config.yaml Resolved
@Bronek

Bronek commented Oct 20, 2024

Copy link
Copy Markdown
Member

I'd be happy to take changes in README.md and new file .pre-commit-config.yaml, also with more checks enabled (and also version of clang-format changed to 18.1.8). I am more than happy to support developers who use (or want to use) pre-commit in their local workflow.

As for using pre-commit in github actions workflow, I am not sure about it - I could be convinced in the future. At this moment I'd rather not perform any installation steps inside the workflow; this is currently met by using the container images as defined in ci/build (and built by the ci workflow) which installs clang from https://apt.llvm.org/

@Bronek
Bronek force-pushed the main branch 2 times, most recently from 895b276 to a080280 Compare October 20, 2024 11:44
@Twon Twon closed this Oct 20, 2024
@Twon
Twon deleted the pre-commit-support branch October 20, 2024 18:40
@Bronek

Bronek commented Dec 8, 2024

Copy link
Copy Markdown
Member

Workflow with pre-commit was added in #123

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