We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
prospector fails with stack trace and error like the following in the presence of valid pyproject.toml files.
toml.decoder.TomlDecodeError: Not a homogeneous array (line 152 column 1 char 4093)
To Reproduce
foo = ["bar", { "baz" = "qux}]
Expected behavior No error
Additional context
The issue here is that prospector uses the toml library which doesn't support the current toml standard.
toml
The solution is to replace toml with tomli, which is part of the python standard library from 3.11.
I'd be happy to create a PR for this if you agree.
The text was updated successfully, but these errors were encountered:
Turns out I'm not this first to notice this, this PR in requirements-detector is already there to address the root cause.
Incidentally it looks like the dependency on toml in this package is redundant.
Also FYI when I setup out this project locally 4 tests were failing out of the box (python 3.10.4 on macOS):
FAILED tests/execution/test_execution.py::test_total_errors - assert 6 == 5 FAILED tests/profiles/test_profile.py::TestProfileInheritance::test_module_file_inheritance - prospector.profiles.exceptions.ProfileNotFound FAILED tests/profiles/test_profile.py::TestProfileInheritance::test_module_inheritance - prospector.profiles.exceptions.ProfileNotFound FAILED tests/tools/pylint/test_pylint_tool.py::TestPylintTool::test_wont_throw_false_positive_relative_beyond_top_level - AssertionError: Lists differ: [pylint-django-not-available] != []
Sorry, something went wrong.
No branches or pull requests
prospector fails with stack trace and error like the following in the presence of valid pyproject.toml files.
To Reproduce
foo = ["bar", { "baz" = "qux}]
Expected behavior
No error
Additional context
The issue here is that prospector uses the
toml
library which doesn't support the current toml standard.The solution is to replace toml with tomli, which is part of the python standard library from 3.11.
I'd be happy to create a PR for this if you agree.
The text was updated successfully, but these errors were encountered: