Skip to content

Incorrect Ruff Version Resolution in ruff-action #256

@DhavalGojiya

Description

@DhavalGojiya

Summary

pyproject.toml

[dependency-groups]
dev = [
    "ruff>=0.14 ; python_version >= '3.11'",
    "mypy>=1.15 ; python_version >= '3.10'",
    "pre-commit>=4.2 ; python_version >= '3.10'",
]

Action Usage In Pipeline

  - name: Run Ruff Linting
    uses: astral-sh/ruff-action@v3

CI Output

Run astral-sh/ruff-action@v3

Found ruff version in pyproject.toml: >=0.14 ; python_version >= '3.11'

Error: No version found for >=0.14 ; python_version >= '3.11'

Expected behavior:
The action should correctly parse and install the latest compatible Ruff version matching the environment’s Python version (e.g., Python 3.11+).

Extra Context

Link for Github action logs : URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions