-
Notifications
You must be signed in to change notification settings - Fork 113
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
Radon can't run when use pytest log fornat: $()d
#251
Comments
Thanks for raising this detailed issue @yukihiko-shinoda. This appears to be a Duplicate of #244. I have opened a PR to resolve the issue (#252); it would be great if you could take a look to review the changes and provide any feedback. In essence, the issue is a result of radon using a config parser that uses the '%' sign for inserting or substituting values from other keys and that radon passes the entire configuration file to the parser - as opposed to the radon section only. If you are not not dependent on radon versions later than 6.0.0 (including pyproject.toml support for radon configuration), rolling back to 5.1.0 should resolve the issue for you until the PR is merged. |
Radon reports
ValueError: invalid interpolation syntax
when use pytest log format with$()d
. But pytest official documentation uses$()d
:_pytest.logging — pytest documentation
How to reproduce
pyproject.toml
:To avoid this issue, it requires to replace
log_format
inpyproject.toml
as following:radon version: 6.0.1
When rollback to radon 5.1.0, it can be avoided.
Tested python version: 3.9.16
OS info:
The text was updated successfully, but these errors were encountered: