Skip to content

Move ruff config to ruff.toml away from pyproject.toml #4599

@yury-fedotov

Description

@yury-fedotov

Context

I noticed that pyproject.toml of Kedro has ~30 lines of ruff configuration.

It might be beneficial to move them to a dedicated file, ruff.toml, to:

  1. Simplify version control and PR reviews (changes to linter config would not be touching the manifest file).
  2. Make all ruff settings be together and thus editing them would be easier.
  3. Make the pyproject.toml file smaller, as in OSS project it anyway carries a lot of responsibility and complexity because of metadata and packaging specifications.

Ruff docs for reference here.

Important

I mean the change in Kedro itself, for the benefit of maintainers. Not in starters. So users of Kedro would actually not be affected at all. Whether it's valuable in starters can be a separate discussion/issue.

Possible implementation

A PR as a simple as take ruff config sections out of pyproject.toml and add exactly them to ruff.toml.

I can help with that if that's a change the maintainers team wants. Let me know :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommunityIssue/PR opened by the open-source community

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions