Include this in precommit config ```yaml - id: end-of-file-fixer exclude: "^docs/source/_templates/.*\\.rst" ``` Add an extra line at the end of the template files. Otherwise, the generated files always are missing the EOL character and precommit has to add it.