Skip to content

Only use files_manager in the test suite #1819

@nathanjmcdougall

Description

@nathanjmcdougall

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.

Metadata

Metadata

Labels

internalChanges to the internals without changing interfaces

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions