Skip to content

Conversation

Mulugruntz
Copy link

Add layout configuration parameter to paracelsus.

  • Add Layouts enum and layout parameter to graph and inject commands in paracelsus/cli.py.
  • Update get_graph_string function in paracelsus/graph.py to handle the layout parameter.
  • Add layout parameter to [tool.paracelsus] section in pyproject.toml.
  • Add test cases for layout parameter in tests/test_cli.py and tests/test_graph.py.
  • Update Mermaid transformer in paracelsus/transformers/mermaid.py to use the new layout parameter and include YAML Front Matter.
  • Add new fixtures in tests/transformers/conftest.py for different layout configurations.
  • Add test cases for new outputs in tests/transformers/test_mermaid.py to cover different layout configurations.

This is documented in https://mermaid.js.org/syntax/entityRelationshipDiagram.html#configuration

Solves #29


For more details, open the Copilot Workspace session.

Add layout configuration parameter to paracelsus.

* Add `Layouts` enum and `layout` parameter to `graph` and `inject` commands in `paracelsus/cli.py`.
* Update `get_graph_string` function in `paracelsus/graph.py` to handle the `layout` parameter.
* Add `layout` parameter to `[tool.paracelsus]` section in `pyproject.toml`.
* Add test cases for `layout` parameter in `tests/test_cli.py` and `tests/test_graph.py`.
* Update `Mermaid` transformer in `paracelsus/transformers/mermaid.py` to use the new `layout` parameter and include YAML Front Matter.
* Add new fixtures in `tests/transformers/conftest.py` for different layout configurations.
* Add test cases for new outputs in `tests/transformers/test_mermaid.py` to cover different layout configurations.

This is documented in https://mermaid.js.org/syntax/entityRelationshipDiagram.html#configuration

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Mulugruntz/paracelsus?shareId=XXXX-XXXX-XXXX-XXXX).
@tedivm
Copy link
Owner

tedivm commented Mar 24, 2025

Can you run make chores to fix the formatting? This will fix the toml and black tests.

From there you just need to fix your tests so they pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants