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 treefmt as module, devShell, check, ci integration #66

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

a-kenji
Copy link
Collaborator

@a-kenji a-kenji commented Feb 15, 2024

Adds treefmt through the treefmt-nix module.

This allows the following integration:

  • nix fmt: format the code through nix fmt
  • treefmt: exposes a wrapped, configured treefmt inside the devShell
  • nix flake check: check and lint the code locally, or the ci

All of these options use the same configuration and will share evaluation cache.

Initalize with the following formatters/linters:

  • deadnix
  • nixfmt
  • rustfmt
  • statix
  • taplo
  • yamllint

Adds `treefmt` through the `treefmt-nix` module.

This allows the following integration:

- `nix fmt`: format the code through `nix fmt`
- `treefmt`: exposes a wrapped, configured `treefmt` inside the
  `devShell`
- `nix flake check`: check and lint the code locally, or the ci

All of these options use the same configuration and will share
evaluation cache.

Initalize with the following formatters/linters:
- deadnix
- nixfmt
- rustfmt
- statix
- taplo
- yamllint
Copy link
Owner

@friedow friedow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! 🎉

@friedow friedow merged commit 3d10924 into main Feb 16, 2024
1 check passed
@friedow friedow deleted the init/treefmt branch February 16, 2024 15:11
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

Successfully merging this pull request may close these issues.

2 participants