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

Integrate with nix fmt #287

Open
yajo opened this issue Apr 24, 2023 · 2 comments
Open

Integrate with nix fmt #287

yajo opened this issue Apr 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@yajo
Copy link
Contributor

yajo commented Apr 24, 2023

As you can see in the manual, there's a nix fmt option for flakes. Flakes can indicate what program should be used for formatting code. Flakes that use this project will usually be formatted using it, so I think it would be helpful to provide formatter configuration out of the box when using the flake template. Also documenting how to use it for projects that already have a flake.

@zmrocze
Copy link

zmrocze commented Apr 24, 2023

This is much needed option, because - while the corrected formatting gets applied to staged changes - there's no way to apply formatting to all tracked files.

EDIT: its there at pre-commit run --all-files. The integration with nix fmt would be cool nevertheless.

@domenkozar
Copy link
Member

If someone makes a PR that would be great!

@domenkozar domenkozar added the enhancement New feature or request label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants