Skip to content

Commit

Permalink
Exclude files as requested by @eddelbuettel
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Feb 23, 2024
1 parent 527dc40 commit c00c50c
Show file tree
Hide file tree
Showing 9 changed files with 2,359 additions and 2,811 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-ci-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ jobs:
- name: Run pre-commit hooks on all files
run: python -m pip -v install pre-commit && pre-commit run -a -v

# Skip files in apis/r/src which are:
# * nanoarrow.c/h
# * Auto-generated by Rcpp
# * Things which Dirk doesn't want to be format-checked
- name: Check C++ Format
shell: bash
run: ./scripts/run-clang-format.sh . clang-format 0 $(find libtiledbsoma apis/python/src apis/r/src -name "*.cc" -or -name "*.cpp" -or -name "*.h" | grep -v external)
run: ./scripts/run-clang-format.sh . clang-format 0 $(find libtiledbsoma apis/python/src -name "*.cc" -or -name "*.cpp" -or -name "*.h" | grep -v external)

build:
runs-on: ${{ inputs.os }}
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,19 @@ data:

# format
# -------------------------------------------------------------------
# Skip files in apis/r/src which are:
# * nanoarrow.c/h
# * Auto-generated by Rcpp
# * Things which Dirk doesn't want to be format-checked
.PHONY: check-format
check-format:
@./scripts/run-clang-format.sh . clang-format 0 \
`find libtiledbsoma apis/python/src apis/r/src -name "*.cc" -or -name "*.cpp" -or -name "*.h"`
`find libtiledbsoma apis/python/src -name "*.cc" -or -name "*.cpp" -or -name "*.h"`

.PHONY: format
format:
@./scripts/run-clang-format.sh . clang-format 1 \
`find libtiledbsoma apis/python/src apis/r/src -name "*.cc" -or -name "*.cpp" -or -name "*.h"`
`find libtiledbsoma apis/python/src -name "*.cc" -or -name "*.cpp" -or -name "*.h"`

# clean
# -------------------------------------------------------------------
Expand Down
Loading

0 comments on commit c00c50c

Please sign in to comment.