diff --git a/{{cookiecutter.project_name}}/.github/workflows/tests.yml b/{{cookiecutter.project_name}}/.github/workflows/tests.yml index 6dbcd83f5..7e4136b5d 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/tests.yml @@ -100,7 +100,7 @@ jobs: if: always() && matrix.session == 'tests' uses: "actions/upload-artifact@v4" with: - name: coverage-data + name: coverage-data-${{"{{"}} matrix.os {{"}}"}}-${{"{{"}} matrix.python {{"}}"}} path: ".coverage.*" - name: Upload documentation diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index 5f77e761b..7d9f27dc8 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -53,6 +53,7 @@ tests = ["tests", "*/tests"] [tool.coverage.run] branch = true source = ["{{cookiecutter.package_name}}", "tests"] +relative_files = true [tool.coverage.report] show_missing = true @@ -128,15 +129,12 @@ classmethod-decorators = ["classmethod", "validator", "root_validator", "pydanti [tool.ruff.per-file-ignores] "*/__init__.py" = ["F401"] "**/tests/*" = [ - # asserts are encouraged in pytest - "S101", - # return annotations don't add value for test functions - "ANN201", - # docstrings are overkill for test functions + "S101", # asserts are encouraged in pytest + "ANN201", # return annotations don't add value for test functions + "D100", # docstrings are overkill for test functions "D101", "D102", "D103", - "D100", ] [build-system]