Skip to content

Commit

Permalink
add cspell CI job (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameily authored Apr 23, 2023
1 parent 4d93825 commit 7b0f991
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"autogenerate",
"autogenerated",
"asdict",
"noqa",
"rpartition",
"pyright",

// spinx docs
"autofunction",
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ jobs:
poetry run poe tests
poetry run coverage xml
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls -f coverage.xml
spelling:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
config: ".cspell.json"
files: |
cincoconfig/**/*.py
docs/*.rst
CHANGELOG.md
2 changes: 1 addition & 1 deletion cincoconfig/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def asdict(config: Config, virtual: bool = False) -> dict:
the configuration, and all nested configuration objects, to a dict, preserving each value
as-is.
:param config: the configuration to conver to a dict
:param config: the configuration to convert to a dict
:param virtual: include virtual field values in the dict
:returns: the converted configuration dict
"""
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ tests = [
{ cmd = "coverage run --source cincoconfig -m pytest" },
{ cmd = "coverage report -m" }
]
# The check-spelling task is currently disabled until poe fixes CMD resolution on Windows:
# https://github.com/nat-n/poethepoet/pull/142
# "check-spelling" = "npx cspell \"cincoconfig/**/*.py\" \"docs/*.rst\" CHANGELOG.md"

0 comments on commit 7b0f991

Please sign in to comment.