Commit 4029150
authored
✨ Create Base Plotly Schema (#31)
* ✨ Feat(vuecore/schemas/plotly_base.py): Create base plotly config for pydantic models to store parameters shared across multiple plot types
* 🎨 Format(vuecore/schemas/basic/bar.py): Update bar pydantic model, extending from PlotlyBaseConfig to reduce code repetition
* 🎨 Format(vuecore/schemas/basic/box.py): Update box pydantic model, extending from PlotlyBaseConfig to reduce code repetition
* 🎨 Format(vuecore/schemas/basic/line.py): Update line pydantic model, extending from PlotlyBaseConfig to reduce code repetition
* 🎨 Format(vuecore/schemas/basic/scatter.py): Update scatter pydantic model, extending from PlotlyBaseConfig to reduce code repetition
* ➕ Format(vuecore/schemas/basic/scatter.py):Correct dependencies
* ✨ Feat(src/vuecore/utils/__init__.py): add combine_docstrings decorator to combine a class's docstring with its parent's docstring
* ✨ Feat: add combine_docstrings decorator to the bar, box, scatter, and line plots
* 🐛 Fix(src/vuecore/utils/__init__.py): use dedent on parent and child attributes to ensure correct format
* 🐛 Fix(docs/conf.py): add autodoc configiration to avoid duplicate Pydantic fields
* 🐛 Fix(docs/conf.py): set autodoc_typehints to none and avoid Napoleon’s auto-parameters
* 🐛 Fix(docs/conf.py): Set no-members and no-inherited-members from autodoc_default_options dict to True to avoid duplicate attributes
* 🐛 Fix(docs/conf.py): Try autodoc_pydantic extension t ahndle pydantic attributes
* 🐛 Fix(.readthedocs.yaml): fix nltk build error by downloading the corpora during the RTD build
* 🐛 Fix(docs/conf.py): load NLTK stopwords in the conf.py to avoid build error
* 🐛 Fix(docs/conf.py): add extra parameters to fix duplicated attributes
* ⏪️ Revert changes on conf.py bc autodoc_pydantic did not fix the duplicated attributes problem
* 🐛 Fix(docs/conf.py): add autodoc_default_options options to avoid duplicated attributes
* 🐛 Fix(docs/conf.py): Add event handler to avoid duplicate attributes
* ⏪️ Revert change of event handler
* 🎨 Style: fix indentation issue with docstrings and remove extra dashes
* ⏪️ Revert combine_docstring decorator change
* 🔥 Remove manual docstrings attributes from Pydantic schemas
* ✨ Feat: Use autodoc_pydantic sphinx extension to show the pydantic docstrings
* 🎨 Add __init__.py file on the src/vuecore/plots folder to make it visible on the sphinx docs
* ✨ Feat(vuecore/utils/docs_utils.py): create document_pydant_params decorator and helper functions to add Pydantic model parameters into a docsting of a target function
* ✨ Feat: add the document_pydant_params decorator in all plot scripts
* 🎨 Format(vuecore/utils/docs_utils.py): add new line in description of document_pydant_params decorator
* ✅ Feat(tests/test_docs_utils.py): add tests for the docs_utils script
* 🐛 Fix(src/vuecore/utils/docs_utils.py): remove f on list of strings
* ✅ Feat: update main test in the tests/test_docs_utils.py file
* 🐛 Fix(src/vuecore/utils/docs_utils.py): removeunnecesary fstring in one of the elemnts of the list to avoid ruff issue1 parent ca7f2eb commit 4029150
File tree
16 files changed
+399
-446
lines changed- docs
- src/vuecore
- plots
- basic
- schemas
- basic
- utils
- tests
16 files changed
+399
-446
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | | - | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
84 | | - | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
96 | 127 | | |
97 | 128 | | |
98 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 21 | | |
81 | 22 | | |
82 | 23 | | |
83 | 24 | | |
84 | 25 | | |
85 | 26 | | |
86 | 27 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 28 | | |
91 | 29 | | |
92 | 30 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 31 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 32 | | |
107 | 33 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 34 | | |
115 | 35 | | |
116 | 36 | | |
| |||
122 | 42 | | |
123 | 43 | | |
124 | 44 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
0 commit comments