From 5866e7fb3742a8345325d86899cb4aee9619195b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Fri, 28 Jun 2024 09:51:12 +0200 Subject: [PATCH 1/2] ci: codespell: add spell checking CI job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since `codespell` learns new typos all the time this job runs on a schedule, in addition to pushes and pull requests. This allows us fix new-found typos before they result in unrelated failed CI runs in pull requests. The scheduled time of 21:10 UTC on thursdays was chosen by fair dice roll. Signed-off-by: Leonard Göhrs --- .codespellrc | 3 +++ .github/workflows/codespell.yaml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .codespellrc create mode 100644 .github/workflows/codespell.yaml diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..33cdb7fe --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +skip = npm-shrinkwrap.json,*.pem,*.patch +ignore-words-list = crate,ratatui diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml new file mode 100644 index 00000000..f2d76452 --- /dev/null +++ b/.github/workflows/codespell.yaml @@ -0,0 +1,16 @@ +name: codespell + +on: + pull_request: + push: + schedule: + - cron: '10 21 * * 4' + +jobs: + codespell: + name: codespell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: python3 -m pip install codespell + - run: codespell meta-lxatac-bsp meta-lxatac-software .github oe-init-build-env README.md From 77e3f3b5823dba5abadca0c6ef7e32dae7c5c4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Fri, 28 Jun 2024 09:53:07 +0200 Subject: [PATCH 2/2] ci: codespell: fix typos using codespell -w MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Leonard Göhrs --- README.md | 4 ++-- .../recipes-core/images/emmc-image/lxatac/genimage.config | 2 +- meta-lxatac-software/recipes-core/bundles/files/hook.sh | 2 +- .../recipes-core/images/lxatac-core-image-base.bb | 2 +- .../recipes-devtools/github-act-runner/github-act-runner.inc | 2 +- .../recipes-devtools/gitlab-runner/gitlab-runner.inc | 2 +- meta-lxatac-software/recipes-rust/bottom/bottom_0.9.6.bb | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index dfbc5f61..3a5bb9fc 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ Add `meta-lxatac` as git submodule and initialize _its_ submodules: $ git add . $ git commit -m "Initial commit" -Re-use the sstate (build artifacts) from the previous build directory so we do +Reuse the sstate (build artifacts) from the previous build directory so we do not have to re-build everything, and the download directory so we do not have to re-download when patching an already built package: @@ -289,7 +289,7 @@ First we are going to generate new keys to sign bundles with: Country Name (2 letter code) [AU]:DE State or Province Name (full name) [Some-State]: Locality Name (eg, city) []: - Organization Name (eg, company) [Internet Widgits Pty Ltd]:Example Project + Organization Name (eg, company) [Internet Widgets Pty Ltd]:Example Project Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []: Email Address []: diff --git a/meta-lxatac-bsp/recipes-core/images/emmc-image/lxatac/genimage.config b/meta-lxatac-bsp/recipes-core/images/emmc-image/lxatac/genimage.config index 1088a0b6..69adf6c7 100644 --- a/meta-lxatac-bsp/recipes-core/images/emmc-image/lxatac/genimage.config +++ b/meta-lxatac-bsp/recipes-core/images/emmc-image/lxatac/genimage.config @@ -25,7 +25,7 @@ image @IMAGE@img { # now because: # - If we add them the partition label clashes with the label of the # fixed partitions in the barebox devicetree. - # - If we change the labels barebox still wont allow the partitions + # - If we change the labels barebox still won't allow the partitions # to overlap. # - We have TACs in the wild that do not have the partitions, # in the partition table so we can not just remove the fixed diff --git a/meta-lxatac-software/recipes-core/bundles/files/hook.sh b/meta-lxatac-software/recipes-core/bundles/files/hook.sh index 9f7d2c8a..baed95ee 100644 --- a/meta-lxatac-software/recipes-core/bundles/files/hook.sh +++ b/meta-lxatac-software/recipes-core/bundles/files/hook.sh @@ -8,7 +8,7 @@ CERT_ENABLED_DIR="${RAUC_SLOT_MOUNT_POINT:?}/etc/rauc/certificates-enabled" BUNDLE_SPKI_HASHES="${RAUC_BUNDLE_SPKI_HASHES:?}" function enable_certificates () { - # Ignore the enabled certifcates from the bundle + # Ignore the enabled certificates from the bundle rm "${CERT_ENABLED_DIR}"/* for cert in "${CERT_AVAILABLE_DIR}"/*; do diff --git a/meta-lxatac-software/recipes-core/images/lxatac-core-image-base.bb b/meta-lxatac-software/recipes-core/images/lxatac-core-image-base.bb index 8505799d..ebbcff05 100644 --- a/meta-lxatac-software/recipes-core/images/lxatac-core-image-base.bb +++ b/meta-lxatac-software/recipes-core/images/lxatac-core-image-base.bb @@ -136,7 +136,7 @@ IMAGE_INSTALL:append = "\ zstd \ " -# is crun needed when using systemd unified hierarcy? +# is crun needed when using systemd unified hierarchy? LICENSE = "MIT" diff --git a/meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner.inc b/meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner.inc index b76986c1..9bee2e9f 100644 --- a/meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner.inc +++ b/meta-lxatac-software/recipes-devtools/github-act-runner/github-act-runner.inc @@ -19,7 +19,7 @@ RDEPENDS:github-act-runner-dev:append = "make bash" SYSTEMD_SERVICE:${PN} = "github-act-runner.service" -# This is required because the go build system fetches dependecies in the +# This is required because the go build system fetches dependencies in the # compile stage. do_compile[network] = "1" diff --git a/meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner.inc b/meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner.inc index b5972049..4796c72c 100644 --- a/meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner.inc +++ b/meta-lxatac-software/recipes-devtools/gitlab-runner/gitlab-runner.inc @@ -16,7 +16,7 @@ inherit systemd SYSTEMD_SERVICE:${PN} = "gitlab-runner.service" -# This is required because the go build system fetches dependecies in the +# This is required because the go build system fetches dependencies in the # compile stage. do_compile[network] = "1" diff --git a/meta-lxatac-software/recipes-rust/bottom/bottom_0.9.6.bb b/meta-lxatac-software/recipes-rust/bottom/bottom_0.9.6.bb index 7444bb00..ad168b17 100644 --- a/meta-lxatac-software/recipes-rust/bottom/bottom_0.9.6.bb +++ b/meta-lxatac-software/recipes-rust/bottom/bottom_0.9.6.bb @@ -13,7 +13,7 @@ CARGO_SRC_DIR = "" # The bottom Cargo.toml strips release builds, why makes it hard to debug. # Yocto has its own stripping feature, that preserves the debug symbols but # only installs the stripped version. -# Pre-stripped binaries trgger a yocto QA error. +# Pre-stripped binaries trigger a yocto QA error. CARGO_BUILD_FLAGS += "--config profile.release.strip=false" SRC_URI += " \