Skip to content

Refactor PyprojectTOMLIOManager and PyprojectTOMLOpener #356

@nathanjmcdougall

Description

@nathanjmcdougall

Motivation
This doesn't really seem to be the right abstraction. For one thing, the PyprojectTOMLIOManager.opener property is never accessed.

I intuit that we can manage with exactly one class by using class variables rather than instance variables.

The goal is just to reduce the complexity as much as possible.

This will help with #219.

Summary of desired enhancement
Revisit the design for this lazy IO handling of pyproject.toml files. Suitably simplify, and potentially also abstract away from just pyproject.toml to other files too.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions