From d0b98ec5fafbd1acc54315bb091d2fb55a029d1c Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Thu, 18 Sep 2025 09:51:32 +0200 Subject: [PATCH 1/4] :art: add sorting check of imports --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 315f0ee..64abdbe 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -19,6 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: psf/black@stable + - uses: isort/isort-action@v1 lint: name: Lint with ruff runs-on: ubuntu-latest @@ -127,4 +128,3 @@ jobs: with: # remove repository key to set the default to pypi (not test.pypi.org) repository-url: https://test.pypi.org/legacy/ - \ No newline at end of file From 4cd7e9bbd47487a97038c395ca8ffdcc17ba5a70 Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Thu, 18 Sep 2025 09:52:35 +0200 Subject: [PATCH 2/4] :art: ensure plotly plots are rendered on readthedocs --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index 4851ebe..48bf684 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,6 +49,7 @@ html_js_files = [ "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" ] +os.environ["PLOTLY_RENDERER"] = "notebook" # compatibility with plotly6 # https://myst-nb.readthedocs.io/en/latest/configuration.html # Execution From 46b23a8a61308f72f45e3896d021cbe3140bc919 Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Thu, 18 Sep 2025 10:00:09 +0200 Subject: [PATCH 3/4] :art: format conf.py --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 48bf684..fbaa22f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,7 +49,7 @@ html_js_files = [ "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" ] -os.environ["PLOTLY_RENDERER"] = "notebook" # compatibility with plotly6 +os.environ["PLOTLY_RENDERER"] = "notebook" # compatibility with plotly6 # https://myst-nb.readthedocs.io/en/latest/configuration.html # Execution From ce7200e54e1a520b0462e59483ebea9beb0d2822 Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Thu, 18 Sep 2025 10:01:33 +0200 Subject: [PATCH 4/4] :art: apply isort --- tests/test_mockup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_mockup.py b/tests/test_mockup.py index 9307ed3..295cb72 100644 --- a/tests/test_mockup.py +++ b/tests/test_mockup.py @@ -1,6 +1,7 @@ -from python_package import hello_world, saved_world import pytest +from python_package import hello_world, saved_world + def test_hello_world_3times(): expected = "hello world hello world hello world"