-
-
Notifications
You must be signed in to change notification settings - Fork 198
Incorrect isinstance(..., 'str') check, test _pyproject_toml
#413
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
Conversation
isinstance(readme, 'str') checkisinstance(..., 'str') check
|
If I find more similarly obvious issues, I will create one PR for them to avoid flooding the PR here. |
|
Looks like we're missing tests for this bit of code. Would it be possible to add something? |
| def test_parse_project_with_readme_string(self): | ||
| with tempfile.TemporaryDirectory() as tmpdir: | ||
| tmp_path = pathlib.Path(tmpdir) | ||
| toml_content = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* main: Add `ruff format` to pre-commit, run it, except the benchmarks (python#410)
isinstance(..., 'str') checkisinstance(..., 'str') check, test _pyproject_toml
I think that's fine here.
Yeah, given the comment at the top of pyperformance/pyperformance/_pyproject_toml.py Lines 1 to 2 in 553aa5d
|
hugovk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
'str'is incorrect there:Reference: