Skip to content

Commit

Permalink
Merge pull request #201 from pymc-labs/uml
Browse files Browse the repository at this point in the history
Improve UML image generation
  • Loading branch information
drbenvincent authored Jun 14, 2023
2 parents c0f9650 + a25da0a commit 6817574
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ Docs are built in `docs/_build`, but these docs are _not_ committed to the GitHu

## Overview of code structure

UML diagrams can be created with the command below. If you have not already done so, you may need to `pip install 'causalpy[lint]'` in order to install `pyreverse`.

```bash
pyreverse -o png causalpy --output-directory docs/source/_static
```

Classes
![](docs/source/_static/classes.png)

Packages
![](docs/source/_static/packages.png)

UML diagrams can be created with the command below.

```bash
make uml
```

---

This guide takes some inspiration from the [Bambi guide to contributing](https://github.com/bambinos/bambi/blob/main/docs/CONTRIBUTING.md)
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ check_lint:
test:
pip install causalpy[test]
pytest

uml:
pip install pylint
pyreverse -o png causalpy --output-directory docs/source/_static --ignore tests
Binary file modified docs/source/_static/classes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/_static/packages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6817574

Please sign in to comment.