Add tool.uv.sources to the "Settings" reference (#8543)

## Summary

Closes https://github.com/astral-sh/uv/issues/8540.
This commit is contained in:
Charlie Marsh
2024-10-24 19:17:50 -04:00
committed by GitHub
parent 99a87464eb
commit 58b5fd4aff
5 changed files with 81 additions and 6 deletions
+8 -1
View File
@@ -101,7 +101,14 @@ fn generate() -> String {
generate_command(&mut output, &uv, &mut parents);
for (value, replacement) in REPLACEMENTS {
output = output.replace(value, replacement);
assert_ne!(
value, replacement,
"`value` and `replacement` must be different, but both are `{value}`"
);
let before = &output;
let after = output.replace(value, replacement);
assert_ne!(*before, after, "Could not find `{value}` in the output");
output = after;
}
output