Godot doesn't have an option to not add a blank line at the end of scripts. However, it's considered good practice to add a blank line at the end of files for two reasons:
- Version control tools like Git (and frontends like GitHub) will complain if your files don't end with a blank line.
- If you print out a file which doesn't end with a blank line with
cat, your prompt will appear on the same line as the last line of the file, which looks ugly.