The script works as expected and updates setup.cfg.
I cannot see any error in your script, but maybe it is because the script returns the variable retv set to 1 if it completes successfully, and Make expects programs return 0 if there aren't any errors.
Can you make a small change to the script and set the variable retv to 0 if it runs successfully? Another option is to not return retv if it isn't used.
Hi!
I am using setup-cfg-fmt in a makefile. When I run
make format
it returns an error.The makefile command
Output from terminal when I run
make format
The script works as expected and updates setup.cfg.
I cannot see any error in your script, but maybe it is because the script returns the variable
retv
set to 1 if it completes successfully, and Make expects programs return 0 if there aren't any errors.Can you make a small change to the script and set the variable
retv
to 0 if it runs successfully? Another option is to not returnretv
if it isn't used.