At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests.
Better to always consistently just use files_manager.
We can use a pygrep language prek hook to forbid any lines starting with (whitespace and) with followed by Manager from within the test suite. That will help us catch the violations and make it easier to work through violations.
At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests.
Better to always consistently just use files_manager.
We can use a
pygreplanguage prek hook to forbid any lines starting with (whitespace and)withfollowed byManagerfrom within the test suite. That will help us catch the violations and make it easier to work through violations.