Skip to content

Support for optional dependencies/extras when auditing from pyproject.toml #766

@albertodiazdorado

Description

@albertodiazdorado

Pre-submission checks

  • I am not reporting a new vulnerability or requesting a new vulnerability identifier. These must be reported or managed via upstream dependency sources or services, not this repository.
  • I agree to follow the PSF Code of Conduct.
  • I have looked through the open issues for a duplicate request.

What's the problem this feature will solve?

Disclaimer: This is only a question. I looked for a slack or discord space but could not find any, hence I am coming here. Please let me know if there's a better way of asking questions.

Is it possible, somehow, to have pip-audit scan not only the dependencies of my project as per pyproject.toml

[project]
dependencies = [
  # ...
]

But also include my dev dependencies?

[project.optional-dependencies]
dev = [
  # ...
]

For reference, tools like liccheck (for license checking) allow users to include dev dependencies in the analysis like this:

[tool.liccheck]
authorized_licenses = [
    "bsd",
    "mit",
]
dependencies = true
optional_dependencies = ["dev"]

Describe the solution you'd like

I'd love to be able to include dev dependencies in my scans

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions