Skip to content

Commit 9bc0177

Browse files
committed
Merge branch 'main' into os_installers
2 parents 47b924b + 5f24bcc commit 9bc0177

File tree

13 files changed

+1216
-598
lines changed

13 files changed

+1216
-598
lines changed

.github/workflows/cdci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
20+
- uses: psf/black@stable
21+
- uses: isort/isort-action@v1
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v5
2224
with:

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
run: |
5858
find docs/streamlit_report/sections -type f -name "*.py" -exec sed -i 's|/home/runner/work/vuegen/vuegen/docs/||g' {} +
5959
- name: Publish Streamlit report to streamlit-example branch
60+
if: startsWith(github.ref, 'refs/tags')
6061
uses: peaceiris/actions-gh-pages@v4
6162
with:
6263
github_token: ${{ secrets.GITHUB_TOKEN }}

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
project = "vuegen"
1919
copyright = "2024, Multiomics-Analytics-Group"
20-
author = "Multiomics-Analytics-Group, Sebastián Ayala Ruano, Henry Webel, Alberto Santos"
20+
author = (
21+
"Multiomics-Analytics-Group, Sebastián Ayala Ruano, Henry Webel, Alberto Santos"
22+
)
2123
PACKAGE_VERSION = metadata.version("vuegen")
2224
version = PACKAGE_VERSION
2325
release = PACKAGE_VERSION
@@ -54,6 +56,8 @@
5456
nb_execution_raise_on_error = True
5557
# Rendering
5658
nb_merge_streams = True
59+
# maximum execution time per cell in seconds
60+
nb_execution_timeout = 120
5761

5862
# https://myst-nb.readthedocs.io/en/latest/authoring/custom-formats.html#write-custom-formats
5963
# ! if you use it, then you cannot directly execute the notebook in the browser in colab

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ docs = ["sphinx", "sphinx-book-theme", "myst-nb", "ipywidgets", "sphinx-new-tab-
6060
[tool.poetry.scripts]
6161
# https://python-poetry.org/docs/pyproject/#scripts
6262
vuegen = "vuegen.__main__:main"
63+
64+
[tool.isort]
65+
profile = "black"

src/vuegen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.0"
1+
__version__ = "1.0.0"

src/vuegen/__main__.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def main():
2626
# https://docs.python.org/3/library/argparse.html#printing-help
2727
parser.print_help()
2828
sys.exit(1)
29-
29+
3030
if config_path and dir_path:
3131
print("Please provide only one of configuration file or directory path:\n")
3232
parser.print_help()
33-
sys.exit(1) # otherwise could resort to either or ?
33+
sys.exit(1) # otherwise could resort to either or ?
3434

3535
# Define logger suffix based on report type and name
3636
logger_suffix = f"{report_type}_report_{str(report_name)}"
@@ -39,11 +39,14 @@ def main():
3939
logger = get_logger(f"{logger_suffix}")
4040

4141
# Generate the report
42-
report_generator.get_report(report_type=report_type,
43-
logger=logger,
44-
config_path=config_path,
45-
dir_path=dir_path,
46-
streamlit_autorun=streamlit_autorun)
42+
report_generator.get_report(
43+
report_type=report_type,
44+
logger=logger,
45+
config_path=config_path,
46+
dir_path=dir_path,
47+
streamlit_autorun=streamlit_autorun,
48+
)
49+
4750

48-
if __name__ == '__main__':
51+
if __name__ == "__main__":
4952
main()

0 commit comments

Comments
 (0)