Skip to content

Clean up before style checks #8009

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

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/code_style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
uses: actions/checkout@v4
- name: Run format on CMake files
run: |
git reset --hard
find -name CMakeLists.txt -exec cmake-format -i {} +
find src test tsl -name '*.cmake' -exec cmake-format -i {} +
- name: Check for diff
run: git diff --exit-code
git diff --exit-code

perl_checks:
name: Check Perl code in tree
Expand All @@ -38,6 +38,7 @@ jobs:
- name: Format Perl files, if needed
if: always()
run: |
git reset --hard
find . -name '*.p[lm]' -exec perltidy -b -bext=/ {} +
git diff --exit-code

Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
- name: Check trailing whitespace
if: always()
run: |
git reset --hard
find . -type f -regex '.*\.\(c\|h\|sql\|sql\.in\)$' -exec perl -pi -e 's/[ \t]+$//' {} +
git diff --exit-code

Expand All @@ -88,6 +90,7 @@ jobs:
sudo apt install clang-format-14
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-14 100
sudo update-alternatives --set clang-format /usr/bin/clang-format-14
git reset --hard
./scripts/clang_format_all.sh
git diff --exit-code

Expand All @@ -109,6 +112,7 @@ jobs:

- name: Run prospector
run: |
git reset --hard
find . -type f -name "*.py" -print -exec prospector {} + -exec black {} +
git diff --exit-code

Expand Down
Loading