File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 5454 run : |
5555 export DEBIAN_FRONTEND=noninteractive
5656 apt-get update -y
57+ apt-get install -y jq
5758 - name : Cache ccache
5859 uses : actions/cache/restore@v4
5960 with :
Original file line number Diff line number Diff line change @@ -51,16 +51,16 @@ jobs:
5151 - name : Format Python Imports
5252 shell : bash
5353 run : |
54- isort --sg "**/third_party/*" --sg "install/*" --sg "toolchain/*" ./ -c -v
55- autoflake -c -r --remove-all-unused-imports --ignore-init-module-imports --exclude "*/third_party/**" --exclude " */install/**" --exclude " */toolchain/** " ./
54+ isort --sg "**/third_party/*" --sg "install/*" --sg "toolchain/*" ./ -c
55+ autoflake --quiet - c -r --remove-all-unused-imports --ignore-init-module-imports --exclude "** /third_party/*,* */install/*,* */toolchain/*" .
5656 - name : Format C
5757 shell : bash
5858 run : |
59- python scripts/run_clang_format.py -e "*/third_party/*" -e "*/install/*" -e "*/toolchain/*" -r --clang-format-executable=${LLVM_INSTALL_DIR}/bin/clang-format ./ scripts
59+ python scripts/run_clang_format.py -e "*/third_party/*" -e "*/install/*" -e "*/toolchain/*" -r --clang-format-executable=${LLVM_INSTALL_DIR}/bin/clang-format . scripts
6060 - name : Format YAML
6161 shell : bash
6262 run : |
63- yamllint -c .yamllint.yml .
63+ yamllint .
6464 - name : Check Python Licenses
6565 shell : bash
6666 run : |
@@ -100,10 +100,9 @@ jobs:
100100 - name : Check CMake Licenses
101101 shell : bash
102102 run : |
103- missing_cmake=$(grep -Lr "SPDX-License-Identifier: Apache-2.0" --include="*.cmake| " --include="CMakeLists.txt" \
103+ missing_cmake=$(grep -Lr "SPDX-License-Identifier: Apache-2.0" --include="*.cmake" --include="CMakeLists.txt" \
104104 --exclude-dir="toolchain" --exclude-dir="install" --exclude-dir=".git" \
105105 --exclude-dir="third_party" --exclude-dir="TEST_*" --exclude-dir="TestFiles" \
106106 --exclude-dir="runtime" . || true)
107107 if [[ -n "$missing_cmake" ]]; then
108108 echo "Missing SPDX in CMake files:"; echo "$missing_cmake"; exit 1; fi
109-
Original file line number Diff line number Diff line change @@ -567,14 +567,13 @@ chimera-sdk: ${CHIMERA_SDK_INSTALL_DIR}
567567
568568format :
569569 @echo " Formatting all relevant files..."
570- @echo " - Format C/C++ Files"
571- @python scripts/run_clang_format.py -e " */third_party/*" -e " */install/*" -e " */toolchain/*" --clang-format-executable=${LLVM_INSTALL_DIR} /bin/clang-format -ir ./ scripts
572- @echo " - Format Python Imports"
573- @autoflake -i -r --remove-all-unused-imports --ignore-init-module-imports --exclude " */third_party/**" --exclude " */install/**" --exclude " */toolchain/**" ./
574570 @echo " - Format Python Files"
575571 @yapf -ipr -e " third_party/" -e " install/" -e " toolchain/" .
576- @echo " - Sort Python Imports"
572+ @echo " - Format Python Imports"
577573 @isort --sg " **/third_party/*" --sg " install/*" --sg " toolchain/*" ./
574+ @autoflake -i -r --remove-all-unused-imports --ignore-init-module-imports --exclude " **/third_party/*,**/install/*,**/toolchain/*" .
575+ @echo " - Format C/C++ Files"
576+ @python scripts/run_clang_format.py -e " */third_party/*" -e " */install/*" -e " */toolchain/*" --clang-format-executable=${LLVM_INSTALL_DIR} /bin/clang-format -ir ./ scripts
578577
579578
580579check-licenses :
You can’t perform that action at this time.
0 commit comments