Skip to content

Commit

Permalink
Spellcheck on its own in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joce committed Jan 4, 2024
1 parent 45aff3b commit a6a14a0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
16 changes: 11 additions & 5 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"version": "0.2",
"language": "en",
"ignorePaths": [".cspell.json", "pyproject.toml"],
"ignorePaths": [
".cspell.json",
"pyproject.toml",
"tests/test_data.json",
".github/workflows/**"
],
"useGitignore": true,
"dictionaryDefinitions": [],
"dictionaries": [],
"words": ["joce", "legault", "renderable", "triggerable"],
"words": ["joce", "legault", "referer", "renderable", "triggerable"],
"ignoreWords": [
"EURUSD",
"KHTML",
Expand All @@ -14,14 +20,14 @@
"PREPRE",
"apng",
"appui",
"datatable",
"disp",
"gcrumb",
"getcrumb",
"guce",
"gucs",
"pytz",
"quotetable",
"referer",
"stockyardapp",
"tcss",
"yclient",
Expand All @@ -33,9 +39,9 @@
"flagWords": ["hte"],
"patterns": [
{
"name": "QuoteSymbol",
"name": "quote_symbol",
"pattern": "/\"[A-Z.]{4,7}\"/"
}
],
"ignoreRegExpList": ["QuoteSymbol"]
"ignoreRegExpList": ["quote_symbol"]
}
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ on:
branches: [master]

jobs:
build:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Check spelling
uses: streetsidesoftware/cspell-action@v5

ci-checks:
needs: spell-check
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -15,9 +25,6 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4

- name: Check spelling
uses: streetsidesoftware/cspell-action@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit a6a14a0

Please sign in to comment.