Skip to content

Commit 6817574

Browse files
authored
Merge pull request #201 from pymc-labs/uml
Improve UML image generation
2 parents c0f9650 + a25da0a commit 6817574

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,18 @@ Docs are built in `docs/_build`, but these docs are _not_ committed to the GitHu
169169

170170
## Overview of code structure
171171

172-
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`.
173-
174-
```bash
175-
pyreverse -o png causalpy --output-directory docs/source/_static
176-
```
177-
178172
Classes
179173
![](docs/source/_static/classes.png)
180174

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

178+
UML diagrams can be created with the command below.
179+
180+
```bash
181+
make uml
182+
```
183+
184184
---
185185

186186
This guide takes some inspiration from the [Bambi guide to contributing](https://github.com/bambinos/bambi/blob/main/docs/CONTRIBUTING.md)

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ check_lint:
2020
test:
2121
pip install causalpy[test]
2222
pytest
23+
24+
uml:
25+
pip install pylint
26+
pyreverse -o png causalpy --output-directory docs/source/_static --ignore tests

docs/source/_static/classes.png

-20.8 KB
Loading

docs/source/_static/packages.png

-27.4 KB
Loading

0 commit comments

Comments
 (0)