damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unnecessary comment at top of requirements.txt

rohitsathish opened this issue · comments

commented

Pigar is a very useful package, it saves developers time in creating a requirements.txt.

However, there is an unnecessary comment at the top.

# Automatically generated by https://github.com/damnever/pigar.

pandas == 1.4.2

This persists even if the --without-referenced-comments has been set. It would be helpful if that comment were removed, at least when this option is set, so we don't have go into the .txt to remove it each time. It kind of is against the idea of automating the requirements.txt.

Which version are you using? This seems like bug.

commented

Sorry to bother you, has this been resolved?
The generated files still contain # Automatically generated by https://github.com/damnever/pigar. , what options are there to turn it off?
The version is 2.1.1

I believe this issue may have been closed by accident. The top line comment serves as a reminder. You can find that protobuf and other tools put a similar line, since your edition may be overridden by pigar again.

However, providing an extra option to disable it would be acceptable.

commented

For example pipreqs won't have such comments, it looks clean. But it has many problems. Anyway, hope you can add an option to disable it, thank you!

I believe this issue may have been closed by accident. The top line comment serves as a reminder. You can find that protobuf and other tools put a similar line, since your edition may be overridden by pigar again.

However, providing an extra option to disable it would be acceptable.