-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TOML parse error: Invalid table header: Duplicate key version
#1894
Comments
Looks like both $ ./playground
Err(
Error {
inner: ErrorInner {
kind: Custom,
line: Some(
5,
),
col: 0,
at: Some(
55,
),
message: "duplicate key: `version`",
key: [
"tool",
"hatch",
],
},
},
)
Err(
TomlError {
message: "TOML parse error at line 6, column 1\n |\n6 | [tool.hatch.version.raw-options]\n | ^\nInvalid table header\nDuplicate key `version`\n",
line_col: Some(
(
5,
0,
),
),
},
) |
I'm not familiar with the Rust release process, will this be closed when toml-rs/toml#439 is available in Ruff, so I can just watch this issue? :) |
Yeah it should be! I'll try upgrading. It looks like they just cut a release. |
Looks like #2040 should close this out. |
Sorry, a little confusion with respect to the |
This _did_ fix #1894, but was a little premature. `toml` doesn't actually depend on `toml-edit` yet, and `v0.5.11` was mostly about deprecations AFAICT. So upgrading might solve that issue, but could introduce other incompatibilities, and I'd like to minimize churn. I expect that `toml` will have a new release soon, so we can revert this revert. Reverts #2040.
Thank you for the fix, I can confirm this is fixed in 0.0.231. I'm impressed it only took 9 days for: report to Ruff, report upstream to Rust TOML library, report upstream to the language-agnostic TOML test suite, then the test suite updated and released, then the TOML library updated and released, and then Ruff updated and released! |
Run
ruff .
with thispyproject.toml
in an empty directory:Outputs error only without
--isolated
in newest 0.0.222:This file is parsed fine by other tools, such as Hatchling, python-build, Black, isort etc. Fuller version at https://github.com/hugovk/norwegianblue/
Error both with and without
--isolated
in 0.0.219:Error only without
--isolated
in 0.0.220:The text was updated successfully, but these errors were encountered: