Skip to content

Commit

Permalink
add spell check action and pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jun 27, 2024
1 parent 6357ea4 commit 8ddecd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,22 @@ 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
- name: mypy
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'
2 changes: 1 addition & 1 deletion .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update depencies in poetry lockfile
name: Update dependencies in poetry lockfile

on:
schedule:
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8ddecd7

Please sign in to comment.