Zulip Chat Archive
Stream: mathlib4
Topic: Mathlib-style formatter
Vasily Ilin (Dec 11 2024 at 16:16):
Hi.
Is there a tool that implements the mathlib code style https://leanprover-community.github.io/contribute/style.html? Or at least checks if my code adheres to it.
Ruben Van de Velde (Dec 11 2024 at 16:25):
Sadly no
Ruben Van de Velde (Dec 11 2024 at 16:26):
There's a few linters, but nothing complete
Eric Wieser (Dec 11 2024 at 17:23):
Currently the best "tool" is creating a PR and letting the reviewers advise on style
Eric Wieser (Dec 11 2024 at 17:23):
If you've read #style and looked at some mathlib code as an example, it's likely you're mostly there
Last updated: May 02 2025 at 03:31 UTC