Commit 6646987
Style and format codebase (#131)
* 🎨 format markdowns
* 🎨 docstrings to 90 characters and remove whitespaces
* 🔧 set line length to 90 characters
* 🎨 split comments, add comments, remove more whitespace, add more docstrings
* 🎨 write strings on two line and let Python concatenate theses
* 🎨 snake_case
* 🎨 raise ValueError if unknown type is provided
alternatively we could use a meaningful default
* 🎨 specify encoding explicitly
* 🎨 use textwrap to keep indentation
* 🐛 with textwrap the text cannot contain new line statements
* 🎨 adjust comments and docstrings to line-length
* 🔧 add jupytext configuration for notebooks to project
* ✅ update example report files so test pass (reviewed changes are only style of .py files)
* 🎨 continue reformatting of streamlit_report.py
* 🎨 remove one level of indentation
* 🎨 docstring and f-string formatting
- leave out most multiline string for now (which need dedenting)
- one whitespace update in tests
* 🎨 encoding and whitespace updates
* 🐛 add missing argument to abc for reports
* 🎨 textwrap code or html blocks
- sometime indent and dedent has to be used
- one typo (altair plot, not plotly plot corrected)
- new line before python code block in qmd files
* 🎨 keep urls at the top
- maybe 'Verschlimmbessern': footer can be hard to read (pdf)
- needed to use escaping of {} using unicode:
\u007b is { and \u007d is }
- 🐛 jupyter used relative import -> changed to URL link of LOGO
- unify MONA mentioning (pdf)
* 🎨 limit remaining lines to 90 characters
* 🎨 shorten docstrings and comments, implement lazy logging
lazy logging is recommended (only a warning):
https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/logging-fstring-interpolation.html
* 🎨 remove trailing white-space from streamlit footer
* 🚚 add constants file to keep these central
* 🎨 streamlit footer in utils? use central constants for footer, dedent
* 🎨 add initialization of dictionary in body of function
* 🎨 add timeout to get request -> will 60 seconds always be enough?
* 🎨 dedent and slightly modify completion message
* 🎨 line lenght, lazy logging and raising exceptions from exception
* 🎨 module and docstrings, comments splitting and removing unnecessary code
* 🎨 lazy logging + exe_info and Error messaging splitting (line length)
* 🎨 module string, line length, unused arguments,
* 🎨 lazy logging and reporting of error info for error
lazy-logging: https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/logging-not-lazy.html
exc_info: https://docs.python.org/3/library/logging.html#logging.Logger.debug
* 🐛 Handle error for loading static images from a URL in streamlit reports
* 📝 Update md files for the yaml examples on the documentation
* 🐛 Fix desciption from the EMP config example
* 🐛 Fix code to load images from URLs in streamlit reports
* Trigger GitHub actions to avoid connection error to download tinytex
* 🎨🔧 let ruff check for line lenght and other potential bugs, add vscode config
update config:
- fixed line length to 88 as default
- ensure line lenght is checked in tests
* 🐛 Ollama chatbot example
- dedent should be called only once
- each block needs to be on the level of where it is supposed to be used (in the multiline f-string)
* 🐛 use existing config file, not the local one generated by chabot notebook
---------
Co-authored-by: sayalaruano <[email protected]>1 parent 6d29572 commit 6646987
File tree
41 files changed
+2189
-1060
lines changed- .github/workflows
- .vscode
- docs
- example_config_files
- src/vuegen
- utils
- tests/report_examples
- Basic_example_vuegen_demo_notebook_cfg/html/quarto_report
- Basic_example_vuegen_demo_notebook
- docx/quarto_report
- html/quarto_report
- jupyter/quarto_report
- odt/quarto_report
- pdf/quarto_report
- pptx/quarto_report
- revealjs/quarto_report
- streamlit_report/sections
- Dataframes
- Home
- Html
- Markdown
- Networks
- Plots
- chat_bot/streamlit_report/sections
- Chatbot_Example
- Home
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+2189
-1060
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments