iterative / py-template

Hypermodern Python Cookiecutter
http://cookiecutter-hypermodern-python.readthedocs.io/
MIT License
14 stars 7 forks source link

Add toml and yaml formatters to pre-commit #121

Closed AlexandreKempf closed 7 months ago

AlexandreKempf commented 7 months ago

Context: https://github.com/iterative/dvclive/pull/773#discussion_r1480220196 Format was not enforced for TOML and YAML files.

dberenbaum commented 7 months ago

Could you also apply the changes to the pyproject.toml template? Otherwise I assume it will have to be reformatted each time once the project is generated.

AlexandreKempf commented 7 months ago

That is a very good point, @dberenbaum! I formatted the files and tried it on my computer. Everything is well formatted at repo initialization. image