diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 000000000..9e7c98556 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "config:base", + ":semanticCommitTypeAll(chore)" + ] +} diff --git a/openapi_python_client/__init__.py b/openapi_python_client/__init__.py index 78dc41faf..ef67b7013 100644 --- a/openapi_python_client/__init__.py +++ b/openapi_python_client/__init__.py @@ -194,7 +194,7 @@ def _build_metadata(self) -> None: git_ignore_path.write_text(git_ignore_template.render(), encoding=self.file_encoding) def _build_pyproject_toml(self, *, use_poetry: bool) -> None: - template = "pyproject.toml.jinja" if use_poetry else "pyproject_no_poetry.toml.jinja" + template = "pyproject.toml" if use_poetry else "pyproject_no_poetry.toml.jinja" pyproject_template = self.env.get_template(template) pyproject_path = self.project_dir / "pyproject.toml" pyproject_path.write_text( diff --git a/openapi_python_client/templates/pyproject.toml.jinja b/openapi_python_client/templates/pyproject.toml similarity index 100% rename from openapi_python_client/templates/pyproject.toml.jinja rename to openapi_python_client/templates/pyproject.toml diff --git a/tests/test___init__.py b/tests/test___init__.py index 5ac49d58b..9a9b03313 100644 --- a/tests/test___init__.py +++ b/tests/test___init__.py @@ -465,7 +465,7 @@ def test__build_pyproject_toml(self, mocker, use_poetry): pyproject_template = mocker.MagicMock(autospec=jinja2.Template) project.env = mocker.MagicMock(autospec=jinja2.Environment) - template_path = "pyproject.toml.jinja" if use_poetry else "pyproject_no_poetry.toml.jinja" + template_path = "pyproject.toml" if use_poetry else "pyproject_no_poetry.toml.jinja" templates = { template_path: pyproject_template, }