-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Coverage cannot parse valid pyproject.toml file #1169
Comments
From the "debug sys" output, it looks like you have coverage.py version 4.5.4, which didn't support TOML. If you install the latest version (5.5), you should be fine. |
Ah, that would do it! Sorry for the noise. We are stuck on 4.5 because of this Cython bug blocking us upgrading to 5. |
Oh, I didn't realize there was a Cython plugin (or maybe I forgot?) We should get that fixed. |
Hi Ned, this would be very much appreciated. We're also pinned on coverage https://github.com/nautechsystems/nautilus_trader/blob/master/pyproject.toml line 66ish. |
I'm not sure what I can do to get the Cython plugin fixed. |
Yes, this is probably something to be addressed by Cython. |
Describe the bug
Coverage.py, installed with the
[toml]
extra, seems to have trouble parsing this validpyproject.toml
file for a project calledfinesse
:When I run coverage with
pytest --cov=finesse --cov-config=pyproject.toml --cov-report=xml tests
, I get this error:Narrowing it down, I can see the problem is
HandyConfigParser
:This linting tool reports the file is valid. In TOML it is acceptable to have arrays spanning multiple lines, trailing commas and inline comments.
To Reproduce
What version of Python are you using? 3.9.5
What version of coverage.py are you using? The output of
coverage debug sys
is helpful.pip freeze
is helpful.Can provide if required. I am not sure this is helpful and will be a lot of work for readers to install.
See bug description.
Expected behavior
coverage.py parses the above
pyproject.toml
file without errors.The text was updated successfully, but these errors were encountered: