From 5a255426cea74a3c2b4548b680777ef62b90752c Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:24:18 +0100 Subject: [PATCH] =?UTF-8?q?codespell=5Flib/tests/=20=E2=86=92=20tests/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codespell-private.yml | 4 ++-- Makefile | 4 ++-- {codespell_lib/tests => tests}/__init__.py | 0 {codespell_lib/tests => tests}/test_basic.py | 0 {codespell_lib/tests => tests}/test_dictionary.py | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename {codespell_lib/tests => tests}/__init__.py (100%) rename {codespell_lib/tests => tests}/test_basic.py (100%) rename {codespell_lib/tests => tests}/test_dictionary.py (100%) diff --git a/.github/workflows/codespell-private.yml b/.github/workflows/codespell-private.yml index 88dd8aa2d13..e21f83e401c 100644 --- a/.github/workflows/codespell-private.yml +++ b/.github/workflows/codespell-private.yml @@ -41,9 +41,9 @@ jobs: - 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/*" + - 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/*" # this file has an error - - run: "! codespell codespell_lib/tests/test_basic.py" + - run: "! codespell tests/test_basic.py" make-check-dictionaries: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 1757974280f..baee2a3cdc9 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ check-dictionaries: fi; \ done @if command -v pytest > /dev/null; then \ - pytest codespell_lib/tests/test_dictionary.py; \ + pytest tests/test_dictionary.py; \ else \ echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \ exit 1; \ @@ -55,7 +55,7 @@ flake8: pytest: @if command -v pytest > /dev/null; then \ - pytest codespell_lib; \ + pytest tests; \ else \ echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \ exit 1; \ diff --git a/codespell_lib/tests/__init__.py b/tests/__init__.py similarity index 100% rename from codespell_lib/tests/__init__.py rename to tests/__init__.py diff --git a/codespell_lib/tests/test_basic.py b/tests/test_basic.py similarity index 100% rename from codespell_lib/tests/test_basic.py rename to tests/test_basic.py diff --git a/codespell_lib/tests/test_dictionary.py b/tests/test_dictionary.py similarity index 100% rename from codespell_lib/tests/test_dictionary.py rename to tests/test_dictionary.py