qiskit-community / povm-toolbox

A toolbox for the implementation of positive operator-valued measures (POVMs).
https://qiskit-community.github.io/povm-toolbox/
Apache License 2.0
6 stars 0 forks source link

ci: ensure ruff format is also applied to notebooks #14

Closed mrossinek closed 1 month ago

mrossinek commented 1 month ago

While looking at #13 I noticed that the notebooks are not being formatted by ruff. This was due to a faulty configuration in tox.ini where we used to run nbqa ruff docs/. However, this only runs ruff's linter and not the formatter. And running via nbqa does not support specifying a subcommand. Luckily, ruff has builtin support for notebooks, which this PR enables.