mirror of
https://github.com/codespell-project/codespell.git
synced 2025-05-17 15:36:17 +08:00
Fix uncaught exception on unreadable files (#2196)
* Avoid bailing out with uncaught `PermissionError` * Update codespell_lib/tests/test_basic.py * FIX: Coverage * FIX: Already short-circuited Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
This commit is contained in:

committed by
GitHub

parent
1c081fa945
commit
a050986bf8
4
.github/workflows/codespell-private.yml
vendored
4
.github/workflows/codespell-private.yml
vendored
@ -33,16 +33,16 @@ jobs:
|
||||
run: |
|
||||
python --version # just to check
|
||||
pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
|
||||
pip install --upgrade codecov chardet "setuptools!=47.2.0" docutils setuptools_scm[toml]
|
||||
pip install --upgrade chardet "setuptools!=47.2.0" docutils setuptools_scm[toml]
|
||||
pip install aspell-python-py3
|
||||
pip install -e ".[dev]" # install the codespell dev packages
|
||||
- run: codespell --help
|
||||
- run: codespell --version
|
||||
- run: make check
|
||||
- uses: codecov/codecov-action@v3
|
||||
- run: codespell --check-filenames --skip="./.git/*,*.pyc,./codespell_lib/tests/test_basic.py,./codespell_lib/data/*,./example/code.c,./build/lib/codespell_lib/tests/test_basic.py,./build/lib/codespell_lib/data/*,README.rst,*.egg-info/*"
|
||||
# this file has an error
|
||||
- run: "! codespell codespell_lib/tests/test_basic.py"
|
||||
- run: codecov
|
||||
|
||||
make-check-dictionaries:
|
||||
runs-on: ubuntu-latest
|
||||
|
Reference in New Issue
Block a user