Skip to content

Commit 106cfe1

Browse files
codespell_lib/tests/ → tests/
1 parent 08e4620 commit 106cfe1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/codespell-private.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
- run: codespell --version
4242
- run: make check
4343
- uses: codecov/codecov-action@v3
44-
- 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/*"
44+
- run: codespell --check-filenames --skip="./.git/*,*.pyc,./tests/test_basic.py,./codespell_lib/data/*,./example/code.c,./build/lib/tests/test_basic.py,./build/lib/codespell_lib/data/*,README.rst,*.egg-info/*"
4545
# this file has an error
46-
- run: "! codespell codespell_lib/tests/test_basic.py"
46+
- run: "! codespell tests/test_basic.py"
4747

4848
make-check-dictionaries:
4949
runs-on: ubuntu-latest

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ check-dictionaries:
2828
fi; \
2929
done
3030
@if command -v pytest > /dev/null; then \
31-
pytest codespell_lib/tests/test_dictionary.py; \
31+
pytest tests/test_dictionary.py; \
3232
else \
3333
echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \
3434
exit 1; \
@@ -55,7 +55,7 @@ flake8:
5555

5656
pytest:
5757
@if command -v pytest > /dev/null; then \
58-
pytest codespell_lib; \
58+
pytest tests; \
5959
else \
6060
echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \
6161
exit 1; \
File renamed without changes.
File renamed without changes.

codespell_lib/tests/test_dictionary.py renamed to tests/test_dictionary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
global_pairs: Set[Tuple[str, str]] = set()
3131

3232
# Filename, should be seen as errors in aspell or not
33-
_data_dir = op.join(op.dirname(__file__), '..', 'data')
33+
_data_dir = op.join(op.dirname(__file__), '..', 'codespell_lib', 'data')
3434
_fnames_in_aspell = [
3535
(op.join(_data_dir, 'dictionary%s.txt' % d[2]), d[3:5], d[5:7])
3636
for d in _builtin_dictionaries]

0 commit comments

Comments
 (0)