File tree Expand file tree Collapse file tree 4 files changed +7
-14
lines changed Expand file tree Collapse file tree 4 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 9898
9999 - name : clang-format
100100 run : |
101- (
102- source /etc/os-release
103- wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
104- sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME} llvm-toolchain-${UBUNTU_CODENAME} main" --yes
105- )
106- sudo apt-get update && sudo apt-get install clang-format --yes
107101 make clang-format
108102
109103 - name : addlicense
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ FROM builder AS devel-builder
4848
4949# Install extra dependencies
5050RUN sudo apt-get update && \
51- sudo apt-get install -y golang clang-format clang-tidy && \
51+ sudo apt-get install -y golang && \
5252 sudo chown -R "$(whoami):$(whoami)" "$(realpath /usr/lib/go)" && \
5353 sudo rm -rf /var/lib/apt/lists/*
5454
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ CUDA_FILES = $(shell find $(SOURCE_FOLDERS) -type f -name "*.cuh" -o -name "
1010COMMIT_HASH = $(shell git log -1 --format=% h)
1111PATH := $(HOME ) /go/bin:$(PATH )
1212PYTHON ?= $(shell command -v python3 || command -v python)
13- CLANG_FORMAT ?= $(shell command -v clang-format-17 || command -v clang-format)
1413PYTESTOPTS ?=
1514
1615.PHONY : default
@@ -95,12 +94,10 @@ cpplint-install:
9594 $(call check_pip_install,cpplint)
9695
9796clang-format-install :
98- command -v clang-format-17 || command -v clang-format || \
99- sudo apt-get install -y clang-format-17 || \
100- sudo apt-get install -y clang-format
97+ $(call check_pip_install,clang-format)
10198
10299clang-tidy-install :
103- command -v clang-tidy || sudo apt-get install -y clang-tidy
100+ $( call check_pip_install, clang-tidy)
104101
105102go-install :
106103 # requires go >= 1.16
@@ -171,8 +168,8 @@ cpplint: cpplint-install
171168 $(PYTHON ) -m cpplint $(CXX_FILES ) $(CUDA_FILES )
172169
173170clang-format : clang-format-install
174- $( CLANG_FORMAT ) --version
175- $( CLANG_FORMAT ) --style=file -i $(CXX_FILES ) $(CUDA_FILES ) -n --Werror
171+ clang-format --version
172+ clang-format --style=file -i $(CXX_FILES ) $(CUDA_FILES ) -n --Werror
176173
177174clang-tidy : clang-tidy-install cmake-configure
178175 clang-tidy --version
Original file line number Diff line number Diff line change 2626pydocstyle [toml ]
2727pyenchant
2828cpplint
29+ clang-format
30+ clang-tidy
2931pre-commit
You can’t perform that action at this time.
0 commit comments