Skip to content

Only use files_manager in the test suite #1819

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

internalChanges to the internals without changing interfaces

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions