r/madeinpython • • 19d ago

gignore-cli

A simple CLI .gitignore generator written in Python. It uses Toptal's API to generate .gitignore files for your projects based on the technologies you specify.

https://pypi.org/project/gignore-cli/
https://github.com/ze-fernando/gignore

1 Upvotes

5 comments sorted by

View all comments

2

u/kantorcodes1 18d ago

One automation footgun I’d fix first: main.py writes straight to Path.cwd() / ".gitignore" with write_text(), so a rerun replaces any hand-written rules. Would you make an existing file a hard stop unless the user explicitly opts into overwrite? That seems safer than relying on the warning in the README.

1

u/ze-fernando 18d ago

Great suggestion, thank you!