Skip to content

How to check only certain dependency group? #151

@marinegor

Description

@marinegor

Hi, thanks for the tool!

I have a very concrete question: how can I run pysentry only on particular dependency group specified in pyproject.toml?

For instance, we have a package built with maturin (https://github.com/ENPICOM/immunum), and dependencies list looks like this:

[tool.maturin]
module-name = "immunum._internal"
features = ["python", "polars"]
profile = "release"


[dependency-groups]
polars = ["polars>1.30.0"]
docs = [
    "markdown-exec[ansi]",
    "mkdocs<2.0",
    "mkdocs-autorefs",
    "mkdocs-macros-plugin",
    "mkdocs-material",
    "mkdocs-simple-hooks",
    "mkdocstrings[python]",
]
dev = [
    "coverage>=7.10.6",
    "go-task-bin>=3.44.1",
    "hypothesis>=6.151.9",
    "pandas-stubs>=2.3.3.251219",
    "pandas>=2.3.3",
    "pre-commit>=4.3.0",
    "pyrefly>=0.53.0",
    "pysentry-rs>=0.3.10",
    "pytest-benchmark>=5.2.3",
    "pytest-markdown-docs>=0.9.1",
    "pytest-xdist>=3.8.0",
    "pytest>=8.4.2",
    "rtoml>=0.13.0",
    "ruff>=0.15.4",
    "ty>=0.0.19",
]
benchmark = [
    { include-group = "polars" },
    "anarcii>=2.0.5",
    "antpack~=0.2.7",
    "biopython>=1.86",
    "scikit-bio==0.6.2",
    "typer>=0.24.1",
]

now only polars group is running in production, hence dev and benchmark groups I want to have ignored (or error only when they allow for RCE or something, but not denial of service, since they only run in CI).

Is there a way to specify that with pysentry?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions