Skip to content

Commit 4a12f93

Browse files
authored
Merge pull request #177 from pymc-labs/UML
Add UML diagrams for overview of the codebase
2 parents ee4087b + 4f95997 commit 4a12f93

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pip install -e .
2828
pip install causalpy[dev]
2929
pip install causalpy[docs]
3030
pip install causalpy[test]
31+
pip install causalpy[lint]
3132
```
3233

3334
If that fails, try:
@@ -36,6 +37,7 @@ If that fails, try:
3637
pip install 'causalpy[dev]'
3738
pip install 'causalpy[docs]'
3839
pip install 'causalpy[test]'
40+
pip install 'causalpy[lint]'
3941
```
4042

4143
It may also be necessary to [install](https://pandoc.org/installing.html) `pandoc`. On a mac, I run `brew install pandoc`.
@@ -114,3 +116,17 @@ python3 -m twine upload dist/*
114116
5. Readthedocs:
115117
- Docs should be built remotely every time there is a pull request
116118
- See here https://docs.readthedocs.io/en/stable/tutorial/#versioning-documentation for versioning the docs
119+
120+
## Overview of code structure
121+
122+
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`.
123+
124+
```bash
125+
pyreverse -o png causalpy --output-directory img
126+
```
127+
128+
Classes
129+
![](img/classes.png)
130+
131+
Packages
132+
![](img/packages.png)

img/classes.png

286 KB
Loading

img/packages.png

57 KB
Loading

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ lint = ["black",
6868
"interrogate",
6969
"isort",
7070
"nbqa",
71-
"pre-commit"
71+
"pre-commit",
72+
"pylint"
7273
]
7374
test = [
7475
"pytest",

0 commit comments

Comments
 (0)