Skip to content

Commit

Permalink
_cli: remove a misleading warning (#719)
Browse files Browse the repository at this point in the history
* _cli: remove a misleading warning

See #718.

Signed-off-by: William Woodruff <[email protected]>

* CHANGELOG: record changes

Signed-off-by: William Woodruff <[email protected]>

---------

Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw authored Jan 7, 2024
1 parent 8b99913 commit f6cdd44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ All versions prior to 0.0.9 are untracked.

## [Unreleased]

### Fixed

* Removed a misleading warning message that resulted in user confusion
([#719](https://github.com/pypa/pip-audit/pull/719))

## [2.6.2]

### Changed
Expand Down
3 changes: 0 additions & 3 deletions pip_audit/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,6 @@ def audit() -> None: # pragma: no cover
if args.require_hashes and args.no_deps:
logger.warning("The --no-deps flag is redundant when used with --require-hashes")

if args.no_deps and args.disable_pip:
logger.warning("The --no-deps flag is redundant when used with --disable-pip")

if args.require_hashes and isinstance(service, OsvService):
logger.warning(
"The --require-hashes flag with --service osv only enforces hash presence NOT hash "
Expand Down

0 comments on commit f6cdd44

Please sign in to comment.