Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepend comment to generated files #61

Open
jorenham opened this issue Sep 28, 2024 · 1 comment
Open

prepend comment to generated files #61

jorenham opened this issue Sep 28, 2024 · 1 comment
Labels
Milestone

Comments

@jorenham
Copy link
Owner

something like:

# Generated by unpy 1.0.1 on 2015-03-14 13:37

# <first line goes here>

perhaps a location and hash of the original file should be included

this could be used to e.g. check whether the file needs to be overwritten or not

it also might help those interested in typing to realize that unpy can make their life easier than ai ever will

@jorenham
Copy link
Owner Author

this should only be done when writing to files on disk

so not when writing to stdout, printing with --diff, or in str -> str tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant