-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
treewide: add linters and formatters #236
Comments
What is the reasoning for this to be integrated into nix develop instead of just using
Maybe treefmt-nix would be a good solution? _: {
# Project root
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
deadnix = {
enable = true;
# Can break callPackage if this is set to false
no-lambda-pattern-names = true;
};
statix.enable = true;
};
}
`` |
I added
Choosing the formatter is somewhat controversial. IIRC, For example,
I would resolve this issue by first refactoring the GitHub Action to run a single |
…ows (#519) Add developer shells with direnv integration and the deadnix, hlint, nixfmt-rfc-style, statix, stylish-haskell, typos, and yamllint pre-commit hooks. Ensure 'nix flake check' works as expected and add the nix-flake-check package, which is a parallelized alternative to 'nix flake check'. Improve and update the GitHub workflows. Closes: #236 Link: #519 Approved-by: Daniel Thwaites <[email protected]>
…ows (#746) Add developer shells with direnv integration and the deadnix, hlint, nixfmt-rfc-style, statix, stylish-haskell, typos, and yamllint pre-commit hooks. Ensure 'nix flake check' works as expected and add the nix-flake-check package, which is a parallelized alternative to 'nix flake check'. Improve and update the GitHub workflows. Closes: #236 Link: #519 Approved-by: Daniel Thwaites <[email protected]> (adapted from commit 7dfcdb4)
About
This is a tracking issue for integrating linters and formatters.
Steps
treewide: integrate linters and formatters
GitHub Actions
nix develop
nix flake check
nix fmt
Unresolved Questions
The text was updated successfully, but these errors were encountered: