From 8ddecd784d116aeba82523028b0d78264a9c95e2 Mon Sep 17 00:00:00 2001 From: rettigl Date: Thu, 27 Jun 2024 23:02:11 +0200 Subject: [PATCH] add spell check action and pre-commit hook --- .github/workflows/linting.yml | 11 +++++++++-- .github/workflows/update_dependencies.yml | 2 +- .pre-commit-config.yaml | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 0097ca6..b910815 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -30,11 +30,11 @@ jobs: python-version: 3.8 poetry-version: 1.2.2 - # Linting steps, excute all linters even if one fails + # Linting steps, execute all linters even if one fails - name: ruff run: poetry run ruff specsanalyzer specsscan tests - - name: ruff formating + - name: ruff formatting if: ${{ always() }} run: poetry run ruff format --check specsanalyzer specsscan tests @@ -42,3 +42,10 @@ jobs: if: ${{ always() }} run: poetry run mypy specsanalyzer specsscan tests + - name: spellcheck + if: ${{ always() }} + uses: streetsidesoftware/cspell-action@v6 + with: + check_dot_files: false + incremental_files_only: false + config: './cspell.json' diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml index 03c0515..468adcd 100644 --- a/.github/workflows/update_dependencies.yml +++ b/.github/workflows/update_dependencies.yml @@ -1,4 +1,4 @@ -name: Update depencies in poetry lockfile +name: Update dependencies in poetry lockfile on: schedule: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f535da..e94afa0 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,3 +42,7 @@ repos: rev: 0.6.0 hooks: - id: nbstripout +- repo: https://github.com/streetsidesoftware/cspell-cli + rev: v6.31.1 + hooks: + - id: cspell