-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use cmake-format instead of gersemi in CI
- Loading branch information
Yuuichi Asahi
committed
Feb 21, 2025
1 parent
1890cc3
commit 651195e
Showing
7 changed files
with
84 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
|
||
# ----------------------------- | ||
# Options affecting formatting. | ||
# ----------------------------- | ||
with section("format"): | ||
|
||
# How wide to allow formatted cmake files | ||
line_width = 120 | ||
|
||
# If an argument group contains more than this many sub-groups (parg or kwarg | ||
# groups) then force it to a vertical layout. | ||
max_subgroups_hwrap = 3 | ||
|
||
# If a statement is wrapped to more than one line, than dangle the closing | ||
# parenthesis on its own line. | ||
dangle_parens = True | ||
|
||
# If the trailing parenthesis must be 'dangled' on its on line, then align it | ||
# to this reference: `prefix`: the start of the statement, `prefix-indent`: | ||
# the start of the statement, plus one indentation level, `child`: align to | ||
# the column of the arguments | ||
dangle_align = 'prefix' | ||
|
||
# ------------------------------------------------ | ||
# Options affecting comment reflow and formatting. | ||
# ------------------------------------------------ | ||
with section("markup"): | ||
# enable comment markup parsing and reflow | ||
enable_markup = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
|
||
name: clang-format check | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
clang-formatting-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DoozyX/clang-format-lint-action@v0.18 | ||
with: | ||
source: 'common/ fft/ examples/ install_test/' | ||
exclude: '' | ||
extensions: 'hpp,cpp' | ||
clangFormatVersion: 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | ||
|
||
name: cmake-format check | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
cmake-formatting-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: cmake-format lint action | ||
uses: puneetmatharu/cmake-format-lint-action@2ac346e79e7ceac958bc637c1391285fb335ed7c # v1.0.5 | ||
with: | ||
args: --config-files .cmake-format.py --in-place | ||
file-regex: '(.*\.cmake$|.*\.cmake\.in$|CMakeLists.txt$)' | ||
- name: check | ||
run: git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.