Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy formatting errors #9

Closed
wants to merge 8 commits into from
Closed

Conversation

MarcelKoch
Copy link
Owner

No description provided.

@github-actions
Copy link

Error: The following files need to be formatted:

test/base/batch_multi_vector_kernels.cpp

You can find a formatting patch under Artifacts here or run format! if you have write access to Ginkgo

@github-actions
Copy link

Error: The following files need to be formatted:

common/cuda_hip/base/math.hpp.inc
dpcpp/base/batch_multi_vector_kernels.hpp.inc
test/base/batch_multi_vector_kernels.cpp

You can find a formatting patch under Artifacts here or run format! if you have write access to Ginkgo

@MarcelKoch
Copy link
Owner Author

check-format!

@github-actions
Copy link

Error: The following files need to be formatted:

common/cuda_hip/base/math.hpp.inc
dpcpp/base/batch_multi_vector_kernels.hpp.inc
test/base/batch_multi_vector_kernels.cpp

You can find a formatting patch under Artifacts here or run format! if you have write access to Ginkgo

@MarcelKoch
Copy link
Owner Author

format!

Co-authored-by: Marcel Koch <marcel.koch@kit.edu>
Comment on lines +1 to +7
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v14.0.0' # The default in Ubuntu 22.04, which is used in our CI
hooks:
- id: clang-format
types_or: [c, c++, cuda, inc]
exclude: third_party/SuiteSparse/AMD/.*
Copy link

Choose a reason for hiding this comment

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

because it install clang-format by pip, I wonder it affects/updates the local python package without notification.
Do you know how pre-commit manages the python environment and whether we can use this clang-format in editor?
nit: use two space to be consistent with the other yaml format

@@ -1,31 +0,0 @@
find_package(Git QUIET)
Copy link

Choose a reason for hiding this comment

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

It can still be pushed if the GINKGO_DEVEL_TOOLS=OFF, right?
The dummy hook is needed although user can still push repo directly before any cmake action.

Comment on lines +2 to +3
on:
workflow_call:
Copy link

Choose a reason for hiding this comment

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

Suggested change
on:
workflow_call:
on: workflow_call

@@ -30,7 +30,7 @@ git rebase --rebase-merges --empty=drop --no-keep-empty \
--exec "cp /tmp/add_license.sh /tmp/format_header.sh /tmp/update_ginkgo_header.sh dev_tools/scripts/ && \
dev_tools/scripts/add_license.sh && dev_tools/scripts/update_ginkgo_header.sh && \
for f in \$($DIFF_COMMAND | grep -E '$FORMAT_HEADER_REGEX'); do dev_tools/scripts/format_header.sh \$f; done && \
for f in \$($DIFF_COMMAND | grep -E '$FORMAT_REGEX'); do $CLANG_FORMAT -i \$f; done && \
pipx run pre-commit run --files $TO_FORMAT && \
Copy link

Choose a reason for hiding this comment

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

$TO_FORMAT is defined in .github/format.sh but it is not sourced

@yhmtsai
Copy link

yhmtsai commented Nov 13, 2023

Ah... I write the review on the wrong pr.
I will move them to the ginkgo one

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.

3 participants