Closed davidorme closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.23%. Comparing base (
050c517
) to head (7579dd5
). Report is 122 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Just to note that this retains black
for one pre-commit
hook. There doesn't seem to be an equivalent approach for using ruff
with jupytext
at present. See: https://github.com/astral-sh/ruff/issues/8800
Description
This removes the redundant step of creating a specific
pyrealm_python3
kernel for Jupyter notebooks and falls back on thepoetry shell
andpoetry run
commands updating the Jupyter kernel specs when run.I have also added
jupytext --pipe black
as apre-commit
hook on thedocs/source
tree to add automaticblack
formatting of code cell contents, and also ensure consistent formatting of{code-cell}
directives (omits the default language)There is one downside of this, which is that
black
insists on stripping out semi-colons, which are a recognized (but hacky) way to suppress the printing ofmatplotlib
function return values.Fixes #246
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks