Skip to content

Commit f1d0603

Browse files
committed
feat: add support for environment variable PIP_AUDIT_IGNORE_VULN to override the command-line option of the same name
1 parent ef48085 commit f1d0603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pip_audit/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _parser() -> argparse.ArgumentParser: # pragma: no cover
378378
metavar="ID",
379379
action="append",
380380
dest="ignore_vulns",
381-
default=[],
381+
default=os.environ.get("PIP_AUDIT_IGNORE_VULN", "").split(),
382382
help=(
383383
"ignore a specific vulnerability by its vulnerability ID; "
384384
"this option can be used multiple times"

0 commit comments

Comments
 (0)