adrienverge / yamllint

A linter for YAML files.
GNU General Public License v3.0
2.79k stars 265 forks source link

Feature Request: Support for Configuration in `pyproject.toml` #648

Closed nh916 closed 6 months ago

nh916 commented 6 months ago

Feature Request

Description: I would like to propose a feature for yamllint to support reading configuration from the pyproject.toml file. I know of a few other Python projects that read configurations from pyproject.toml file.

[tool.isort]
profile = "black"

This feature would allow developers to manage configurations for multiple tools, including yamllint, in a single, unified file, enhancing project organization and simplicity. Consolidating configurations into a single file will make project management simpler and cleaner.

[yamllint]
indent-size = 2
rules = { document-start = false, truthy = false }

Thank you for considering this feature request. I believe it would be a valuable addition to yamllint

adrienverge commented 6 months ago

Hello, is it a duplicate of https://github.com/adrienverge/yamllint/issues/568?

nh916 commented 6 months ago

Hello, is it a duplicate of #568?

okay sounds good, then I'll close this one