ComPWA / compwa.github.io

Source code for the ComPWA Organization website
https://compwa.github.io
Apache License 2.0
5 stars 4 forks source link

Set Ruff E402 as default for notebooks #269

Open redeboer opened 4 months ago

redeboer commented 4 months ago

Currently, the rule E402 (module-import-not-at-top-of-file) is deactivated for notebooks.

https://github.com/ComPWA/compwa.github.io/blob/bde4df9bf47c8e3165f4e3da62f7455913566d54/pyproject.toml#L256

We should activate this for notebooks and switch off that rule for the relevant notebooks through per-file-ignores.