From 033ddd13523ee8f111d04fde23f7e19f7574d6fe Mon Sep 17 00:00:00 2001 From: Gregory Poole Date: Thu, 4 Jul 2024 14:24:57 +1000 Subject: [PATCH] Return a dependency to the template project that was accidentally deleted. --- pyproject.toml | 8 ++++---- {{cookiecutter.repo_name}}/pyproject.toml | 16 +++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 55f1f84..0e9837f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,10 +32,6 @@ ruff = "^0" mypy = "^1" pre-commit = "^3" -[tool.pytest.ini_options] -pythonpath = ["./tests", "./"] # relative to root directory -addopts = "--ignore={{cookiecutter.repo_name}}" - # This configures the Poetry plugin which enables dynamic versioning via the repo tags # Note the changes that are also needed to the [build-system] config below. [tool.poetry-dynamic-versioning] @@ -43,6 +39,10 @@ enable = true vcs = "git" style = "semver" +[tool.pytest.ini_options] +pythonpath = ["./tests", "./"] # relative to root directory +addopts = "--ignore={{cookiecutter.repo_name}}" + [tool.mypy] ignore_missing_imports = true mypy_path = "$MYPY_CONFIG_FILE_DIR/tests" diff --git a/{{cookiecutter.repo_name}}/pyproject.toml b/{{cookiecutter.repo_name}}/pyproject.toml index 30f2908..4b298ff 100644 --- a/{{cookiecutter.repo_name}}/pyproject.toml +++ b/{{cookiecutter.repo_name}}/pyproject.toml @@ -27,14 +27,23 @@ myst-parser = "^1" pytest = "^7" pytest-mock = "^3" pytest-cookies = "^0" +pytest-cov = "^5" black = "^24" ruff = "^0" mypy = "^1" pre-commit = "^3" +# This configures the Poetry plugin which enables dynamic versioning via the repo tags +# Note the changes that are also needed to the [build-system] config below. +[tool.poetry-dynamic-versioning] +enable = true +vcs = "git" +style = "semver" + [tool.pytest.ini_options] addopts = "--cov" pythonpath = "./python" # relative to root directory + # Uncomment and edit the following line to add custom markers to your tests # These can be run with the following (for example): # @@ -42,13 +51,6 @@ pythonpath = "./python" # relative to root directory # #markers = [ "marker_name: A short description of the marker" ] -# This configures the Poetry plugin which enables dynamic versioning via the repo tags -# Note the changes that are also needed to the [build-system] config below. -[tool.poetry-dynamic-versioning] -enable = true -vcs = "git" -style = "semver" - [tool.mypy] ignore_missing_imports = true mypy_path = "$MYPY_CONFIG_FILE_DIR/python"