Skip to content

STYLE: Add ruff check to avoid multiple with statements #53436

Closed
@DeaMariaLeon

Description

@DeaMariaLeon

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

Metadata

Metadata

Assignees

Labels

Code StyleCode style, linting, code_checks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions