Skip to content

Omitted target_version when using ruff.toml #4902

@HealthyPear

Description

@HealthyPear

I am using ruff.toml for my configuration and my Python package is configured with pyproject.toml.

In my ruff configuration, I omitted target_version.

I am using ruff v0.0.270.

When I launch ruff check -v . from the root of my repository I get,

[2023-06-06][13:32:44][ruff::settings::pyproject][DEBUG] project.requires_python in pyproject.toml will not be used to set target_version when using ruff.toml.

If the expected behavior (infer from pyproject.toml) is not supported from ruff.toml, I think that the documentation should be clearer.

If instead this is supposed to work maybe it's a bug or I missed something...

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions