Add option uv export --exclude-editable
#6995
Labels
cli
Related to the command line interface
enhancement
New feature or improvement to existing functionality
I use
pip-audit
in my projects for scanning packages with known vulnerabilities. It can be given arequirements.txt
file to audit. This could play nice with the newuv export
feature, but fails because of the editable entry for the project package:The
uv pip freeze
command has an--exclude-editable
option to remove editable packages from output. A similar option foruv export
would help here :)$ pip-audit --disable-pip --requirement <(uv export --format requirements-txt --exclude-editable)
For the moment, my workaround is to exclude editable packages with grep, but this is cumbersome:
$ pip-audit --disable-pip --requirement <(uv export --format requirements-txt | grep -v '^-e ')
The text was updated successfully, but these errors were encountered: