-
Notifications
You must be signed in to change notification settings - Fork 332
Use treefmt to nixpkgs-fmt all .nix files #2831
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3caf802
nix/wire-server: add nixpkgs-fmt and treefmt to the dev env
flokli 23c50ac
treefmt: configure nixpkgs-fmt as a .nix formatter
flokli 6ab019d
hack/bin/generate-local-nix-packages.sh: ensure files are formatted
flokli cc8e755
libs,services,tools: re-run hack/bin/generate-local-nix-packages.sh
flokli 35d6376
nix/wire-server.nix: nixpkgs-fmt
flokli adaea3d
nix/haskell-pins: nixpkgs-fmt
flokli 8841e3a
nix/pkgs/python-docs: nixpkgs-fmt
flokli c478e09
treefmt.toml: exclude nix/sources.nix
flokli 089c355
services/galley/schema: nixpkgs-fmt
flokli bc8929e
services/spar/test-scim-suite: nixpkgs-fmt
flokli da9a7d9
gh actions: run treefmt
flokli 5c3f35a
changelog.d: add treefmt
flokli 85ff0d3
treefmt: add shellcheck
flokli af8bad2
treefmt.toml: exclude third_party nginx modules
flokli 51fefa3
hack/bin/shellcheck.sh: remove, add treefmt target
flokli 3176143
update changelog
flokli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Use treefmt to ensure consistent formatting of .nix files, use for shellcheck too (#2831) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This github action is unnecessary, as linters already run
make lint-allhere: https://github.com/zinfra/cailleach/blob/ab3a921c7a6cc903c0d1d578040e05a566c84bfa/wire-server-private/ci/pipelines/jobs/linters.dhall#L40-L60please remove this github actions block. Also, we agreed to not introduce more github actions if not strictly necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to keep these 20 lines of yaml.
treefmtafter installing the dependencies.It would be a different thing if we'd start to model complicated logic in GH actions, but this simply executes a script to give semi-instant feedback.
It looks like Concourse also does it, because it's invoked in the
lint-alltarget from the Makefile, but it's way less accessible.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it spams emails and re-does something that is already done, giving twice the amount of linting feedback for the same issue. To me, this is just noise and unnecessary. Maybe someone else has an opinion here also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can change if GH actions should send you emails on failure in your notification settings: