Skip to content

Commit f87b15e

Browse files
committed
Merge branch 'codespell'
2 parents 0539128 + ba5fa79 commit f87b15e

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/scripts/codespell.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
2+
set -ex
23

3-
OUTPUT=$1
4+
# OUTPUT=$1
45

5-
echo "Run codespell..."
6-
codespell --quiet-level=2 --skip "*.h,*.cmake,*.c,*.hpp,*.cpp,*.sh,*.py,test/supp/*.supp" -i 0 -L "ASSER,Tne,ba,BA" || true
6+
SCAN_RESULT=`codespell -H --quiet-level=3 --skip="*.h,*.cmake,*.c,*.hpp,*.cpp,*.sh,*.py,test/supp/*.supp,./.venv" --ignore-words-list="ASSER,Tne,ba,BA" CODE_OF_CONDUCT.md`
7+
echo -e "${SCAN_RESULT}"
8+
# echo -e "${SCAN_RESULT}" > ${OUTPUT}
9+
# cat ${OUTPUT}
10+
11+
if [[ ! -z ${SCAN_RESULT} ]]; then
12+
exit 1
13+
fi

.github/workflows/reusable_checks.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python3 -m venv .venv
3030
. .venv/bin/activate
3131
echo "$PATH" >> $GITHUB_PATH
32-
python3 -m pip install bandit
32+
python3 -m pip install bandit codespell
3333
3434
- name: Configure CMake
3535
run: >
@@ -55,7 +55,11 @@ jobs:
5555
- name: Run a spell check
5656
uses: crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
5757
with:
58-
config: ./.github/workflows/.spellcheck-conf.toml
58+
config: ./.github/workflows/.spellcheck-conf.toml
59+
60+
- name: Run codespell
61+
run: |
62+
bash .github/scripts/codespell.sh codespell.log
5963
6064
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
6165
- name: Run Bandit

codespell.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+



Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)