diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa2692e..2805323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: python -m pip install . - name: Test run: | - python -m pytest -v --assert=plain ./tests + python -m pytest mypy: runs-on: windows-latest diff --git a/README.md b/README.md index 97c2e86..a59d381 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,9 @@ pre-commit install After you implement your changes you should run the static code analysis and check the documentation: ```shell script +# install pycanape in editable mode +python -m pip install -e .[dev,doc] + # format the code with black black . @@ -84,7 +87,7 @@ ruff check --fix src mypy . # run the tests -python -m pytest +python -m pytest --cov-config=./pyproject.toml --cov=pycanape --cov-report=term --cov-report=html # build the documentation python -m sphinx -Wan --keep-going docs build diff --git a/pyproject.toml b/pyproject.toml index 56ba10a..d498705 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,10 +125,7 @@ ignore = [ known-first-party = ["pycanape"] [tool.pytest.ini_options] -addopts = """\ - -v --assert=plain \ - --cov-config=./pyproject.toml --cov=pycanape --cov-report=term --cov-report=html\ - """ +addopts = "-v --assert=plain" testpaths = ["tests"] [tool.coverage.run]