Skip to content

Commit 33485af

Browse files
committed
fix(gen-init): add --in-place flag to tangerine command for existing files
The tangerine command was being called without the --in-place flag when processing existing __init__.py files, which caused the transformed content to be printed to stdout instead of updating the file. This change ensures existing files are properly updated in place when using the tangerine tool.
1 parent 377fe88 commit 33485af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/.config/copier/mise/tasks/gen-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [[ -d $src_dir ]]; then
2727
if [[ ! -f $file ]]; then
2828
tangerine <<< "$TEMPLATE" > "$file"
2929
else
30-
tangerine "$file"
30+
tangerine --in-place "$file"
3131
fi
3232
else
3333
if [[ ! -f $file ]]; then

0 commit comments

Comments
 (0)