diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e84135..b185571 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -103,3 +103,21 @@ jobs: run: pip install --user hs-dbus-signature - name: ${{ matrix.task }} run: ${{ matrix.task }} + + rust_dependent_checks: + runs-on: ubuntu-latest + container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + - name: Install dependencies + run: dnf install -y clang curl make + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: cargo + - uses: baptiste0928/cargo-install@v3 + with: + crate: typos-cli + - name: Run test + run: make -f Makefile check-typos diff --git a/Makefile b/Makefile index de7e09b..609645b 100644 --- a/Makefile +++ b/Makefile @@ -38,3 +38,11 @@ yamllint: .PHONY: package package: (umask 0022; python -m build; python -m twine check --strict ./dist/*) + +.PHONY: check-typos +check-typos: + typos + +.PHONY: fix-typos +fix-typos: + typos -w diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..2a93df2 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[default.extend-identifiers] +strat = "strat"