Skip to content

Commit e16e715

Browse files
authored
Plotly isort (#12)
* 🎨 add sorting check of imports * 🎨 ensure plotly plots are rendered on readthedocs * 🎨 format conf.py * 🎨 apply isort
1 parent 5b0e65b commit e16e715

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: psf/black@stable
22+
- uses: isort/isort-action@v1
2223
lint:
2324
name: Lint with ruff
2425
runs-on: ubuntu-latest
@@ -127,4 +128,3 @@ jobs:
127128
with:
128129
# remove repository key to set the default to pypi (not test.pypi.org)
129130
repository-url: https://test.pypi.org/legacy/
130-

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
html_js_files = [
5050
"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"
5151
]
52+
os.environ["PLOTLY_RENDERER"] = "notebook" # compatibility with plotly6
5253

5354
# https://myst-nb.readthedocs.io/en/latest/configuration.html
5455
# Execution

tests/test_mockup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from python_package import hello_world, saved_world
21
import pytest
32

3+
from python_package import hello_world, saved_world
4+
45

56
def test_hello_world_3times():
67
expected = "hello world hello world hello world"

0 commit comments

Comments
 (0)