You can format notebooks automatically using the target:
To lint notebooks, run:
This target uses the same plugins as the python-lint target (isort, black, flake8 and pylint), but runs them through nbQa as well. nbQa is a plugin that simply allows you to use python linters for Jupyter notebooks. By default, all notebooks inside the repository will be linted.
To perform notebook linting automatically through a CI/CD pipeline, add the following lines to the .gitlab-ci.yml file:
- project: 'ska-telescope/templates-repository'