Skip to content

Add API#216

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:api
May 14, 2024
Merged

Add API#216
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:api

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

@gaborbernat gaborbernat commented May 14, 2024

👍

Signed-off-by: Bernát Gábor <[email protected]>
@gaborbernat
Copy link
Copy Markdown
Member Author

@abravalheri can you confirm this is good enough for you? Can't give sadly pass in string functionality, but this should be close enough.

@gaborbernat gaborbernat merged commit aa448ca into tox-dev:main May 14, 2024
@gaborbernat gaborbernat deleted the api branch May 14, 2024 20:58
@abravalheri
Copy link
Copy Markdown
Contributor

Thank you very much for having a go at this.

I suppose that the next best thing for applications that want to manipulate in-memory strings directly would be to use pyproject-fmt-rust and copy the defaults from pyproject-fmt, right?

There is the obvious drawback that the pyproject-fmt defaults might drift with time (and/or) new configuration options may be added, so the application would have to catch up, but at least that would eliminate the need for temporary files...

@gaborbernat
Copy link
Copy Markdown
Member Author

Thank you very much for having a go at this.

I suppose that the next best thing for applications that want to manipulate in-memory strings directly would be to use pyproject-fmt-rust and copy the defaults from pyproject-fmt, right?

There is the obvious drawback that the pyproject-fmt defaults might drift with time (and/or) new configuration options may be added, so the application would have to catch up, but at least that would eliminate the need for temporary files...

Sure, but note the settings class is not backwards compatible so you'll need to pin the project. 😅

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants