Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

Fix {black,lint} environment re-creation on tox4 - #28

Draft
garrison wants to merge 1 commit into
mainfrom
tox4-shared-env
Draft

Fix {black,lint} environment re-creation on tox4#28
garrison wants to merge 1 commit into
mainfrom
tox4-shared-env

Conversation

@garrison

Copy link
Copy Markdown
Member

I've found that the existing tox configuration, which has the black and lint environments sharing the same envdir, works fine on tox3 but on tox4 results in the environments being re-created every time one toggles between them.

There is a suggested solution on StackOverflow, but it seems not to work as expected on tox4, so I've opened an issue there: tox-dev/tox#2362

This uses generative section names, hence the bumping of minversion to tox 3.15.

I'll plan to merge this PR once the above issue with tox is resolved.

I've found that the existing tox configuration, which has the black and
lint environments sharing the same `envdir`, works fine on tox3 but on
tox4 results in the environments being re-created every time one toggles
between them.

There is a suggested solution [on StackOverflow](https://stackoverflow.com/a/64060423),
but it seems not to work as expected on tox4, so I've opened an issue there:
tox-dev/tox#2362

I'll plan to merge this PR once the above issue with tox is resolved.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant