aboutcode-org / python-inspector

Inspect Python code and PyPI package manifests. Resolve Python dependencies.
22 stars 19 forks source link

Fix 180: Add environment variables to Click CLI options #187

Open calizarr opened 2 months ago

calizarr commented 2 months ago

This will add environment variables as extra options for the index-url flag. Click will split on whitespace for multiple values by default.

Added a possibly unnecessary test to make sure that flags override environment variables.

Signed-off-by: Cesar Lizarraga calizarr@gmail.com

calizarr commented 2 months ago

I believe I've just rebased and added my signature.

TG1999 commented 2 months ago

@calizarr not all the commits have the sign-off, neither the PR description have it

calizarr commented 2 months ago

Alright, I'll try again. Not entirely sure how to add it to the PR description though

TG1999 commented 2 months ago

Something like this

Signed-off-by: Name <email>

in the end of PR description

calizarr commented 2 months ago

All commits should be signed off now. @pombredanne @TG1999