Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add leading zero when it is missing for decimals #105

Open
etiennebacher opened this issue Dec 14, 2024 · 0 comments
Open

Add leading zero when it is missing for decimals #105

etiennebacher opened this issue Dec 14, 2024 · 0 comments

Comments

@etiennebacher
Copy link

It would be great if air could add a leading 0 for decimals when it is missing, so that this

.3 + .5

becomes this

0.3 + 0.5

Ruff (the formatter component, not the linter one) already does that and there's a PR in rustfmt to implement this (as an option) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant