diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..e21712e --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within pyproject.toml +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/examples/asyncio_generators.py b/examples/asyncio_generators.py index 463a650..be5f5a6 100755 --- a/examples/asyncio_generators.py +++ b/examples/asyncio_generators.py @@ -84,7 +84,7 @@ async def wire_coro(**kwargs): async def main(**kwargs): - print('Some informations about the input signal:') + print('Some information about the input signal:') try: await asyncio.wait_for(print_input_infos(), timeout=2) except asyncio.TimeoutError: diff --git a/pyproject.toml b/pyproject.toml index 68847bb..be19f0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,10 @@ [build-system] requires = ["setuptools >= 61.0"] build-backend = "setuptools.build_meta" + +[tool.codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = '.git*,*.svg' +check-hidden = true +ignore-regex = '\bHDA\b' +# ignore-words-list = '' diff --git a/sounddevice.py b/sounddevice.py index 28d31a9..7963ab8 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -2486,7 +2486,7 @@ def __init__(self, exclusive=False, auto_convert=False): class _CallbackContext: - """Helper class for re-use in play()/rec()/playrec() callbacks.""" + """Helper class for reuse in play()/rec()/playrec() callbacks.""" blocksize = None data = None