Skip to content

Commit

Permalink
✅ update mkdocs test check libs in pyproject.toml (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRZapata committed Feb 12, 2024
1 parent 9089678 commit 36035d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/test_create_template_no_mkdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ def test_cookiecutter_mkdocs_files(cookies) -> None: # type: ignore

env_path = result.project_path / "docs/index.md"
assert not env_path.is_file()

env_path = result.project_path / "pyproject.toml"
assert env_path.is_file()

with open(env_path) as f:
file_content = f.read()
assert "tool.poetry.group.docs.dependencies" not in file_content
3 changes: 2 additions & 1 deletion {{cookiecutter.repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ python = "^{{ cookiecutter.compatible_python_versions }}"
hydra-core = "^1.1.1"



[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.0"

Expand All @@ -26,11 +25,13 @@ pytest = "^8.0.0"
pytest-cov = "^4.1.0"
pytest-mock = "^3.12.0"

#{% if cookiecutter.mkdocs %}
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocs-material = "^9.5.7"
mkdocstrings = {extras = ["python"], version = "^0.24.0"}
pymdown-extensions = "^10.7"
#{% endif %}

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 36035d5

Please sign in to comment.