-
-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tox/Poetry issue when running with pre-commit #2859
Comments
@razy69 seems we need more info on why this broke, we'll accept a PR if you can put it in, but note we don't plan to work on this ourselves. |
While I do not use poetry in any of my projects, I did spot that https://github.com/Textualize/rich project tox file is not working at all and the reasons are related to its use of poetry. I am not sure if that is their misconfiguration of tox or a tox issue, especially as they do not even use tox in their GHA pipelines, which is another questionable thing as drifting would be guaranteed to happen. I posted this because, I am quite curious if there is any project using poetry + tox4 in a working status. |
There's perhaps a smoking gun in the log file
...
If i run instead with After peeling the layers back a bit, I find this trace
There are at least 3 legit bugs scattered in various projects:
As a workaround, Here's an actual minimal repro of this issue:
|
@masenf did you made this PR in the end? |
I did not put in a PR, but I did notice last week that the underlying issue was fixed upstream. Definitely worth a retest. |
Discussed in #2857
Originally posted by razy69 January 12, 2023
Issue
Hello everyone,
I encounter a strange issue while using pre-commit with tox/poetry.
I have to run pre-commit with PRE_COMMIT_COLOR=never to make it works.
The issue appears with tox 4.0.12 and still not resolved in 4.2.8.
Environment
Provide at least:
pip list
of the host Python wheretox
is installed:python >= 3.10
tox > 4.0.11
poetry > 1.3.0
pre-commit >= 2.20.0
tox.ini
.pre-commit-config.yaml
Minimal example
Running tox directly:
Running pre-commit:
Running pre-commit with PRE_COMMIT_COLOR=never
Does anyone succeed to make them work together ?
Thanks.
The text was updated successfully, but these errors were encountered: