Closed
Description
Currently, it is possible to nest multiple consecutive context managers in the code.
It can be avoided by adding the following to ruff checks:
https://beta.ruff.rs/docs/rules/multiple-with-statements/
This should be added to .pre-commit-config.yaml