Skip to content

Commit

Permalink
More clang-tidy cleanups in writer.cpp (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored Sep 27, 2024
1 parent c0f4752 commit 491f95d
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 147 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Checks: '-*,cppcoreguidelines-*,-cppcoreguidelines-pro-type-union-access'
18 changes: 17 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,25 @@ jobs:
code-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pre-commit/action@v3.0.0

clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install nanobind
run: python -m pip install nanobind
- name: Build project
run: |
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build
ln -s build/compile_commands.json
- name: Run clang-tidy
run: |
clang-tidy src/pantab/writer.cpp
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
Loading

0 comments on commit 491f95d

Please sign in to comment.