Skip to content

MNT Add test for minigallery_sort_order#1402

Merged
lucyleeow merged 3 commits intosphinx-gallery:masterfrom
lucyleeow:tst_minigal_sort
Nov 8, 2024
Merged

MNT Add test for minigallery_sort_order#1402
lucyleeow merged 3 commits intosphinx-gallery:masterfrom
lucyleeow:tst_minigal_sort

Conversation

@lucyleeow
Copy link
Copy Markdown
Contributor

@lucyleeow lucyleeow commented Nov 7, 2024

Follow on after #1391

Adds check that callable works for minigallery_sort_order

Note I had to import the custom sort function as I needed to build (and not just create_sphinx_app) and thus could not define function in config file as it is not it is not pickle-able (for in new sphinx)

Copy link
Copy Markdown
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the one comment

"plot_1.py",
]
return ORDER.index(Path(file).name)
return file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cruft

Suggested change
return file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that was a github co-pilot addition and I didn't realise it was added. 🤦

@lucyleeow lucyleeow merged commit 6521d88 into sphinx-gallery:master Nov 8, 2024
@lucyleeow
Copy link
Copy Markdown
Contributor Author

Thanks for the review!

@lucyleeow lucyleeow deleted the tst_minigal_sort branch November 8, 2024 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants