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

Remove spaces around equals, fixes renovate MRs

sswane opened this issue · comments

Pigar creates a requirements.txt file with output like:

fire == 0.4.0

When using renovate to update dependencies, a merge request is created with the change being:

fire==0.4.0

In order to use the default renovate configuration without unnecessary merge requests, can you please remove the spaces around the double equal sign in the output from pigar?

I think you should open another issue to request renovate to add those empty spaces as well.

Anyway, you can use sed -i 's/ == /==/' requirements.txt to remove those empty spaces. sed -i '' 's/ == /==/' requirements.txt on macOS.

Fair point