mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
Merge pull request #14 from blaggacao/main
fixup: re-add cargo & treefmt
This commit is contained in:
commit
9e9af04f53
2 changed files with 3 additions and 3 deletions
|
@ -65,6 +65,7 @@
|
||||||
name = "Alejandra";
|
name = "Alejandra";
|
||||||
packages = [
|
packages = [
|
||||||
fenix.rust-analyzer
|
fenix.rust-analyzer
|
||||||
|
fenix.latest.cargo
|
||||||
fenix.latest.clippy
|
fenix.latest.clippy
|
||||||
fenix.latest.rust-src
|
fenix.latest.rust-src
|
||||||
fenix.latest.rustc
|
fenix.latest.rustc
|
||||||
|
@ -75,6 +76,7 @@
|
||||||
nixpkgs.nodePackages.prettier
|
nixpkgs.nodePackages.prettier
|
||||||
nixpkgs.nodePackages.prettier-plugin-toml
|
nixpkgs.nodePackages.prettier-plugin-toml
|
||||||
nixpkgs.shfmt
|
nixpkgs.shfmt
|
||||||
|
treefmt
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if git rev-parse --verify HEAD >/dev/null 2>&1; then
|
if git rev-parse --verify HEAD > /dev/null 2>&1; then
|
||||||
against=HEAD
|
against=HEAD
|
||||||
else
|
else
|
||||||
# Initial commit: diff against an empty tree object
|
# Initial commit: diff against an empty tree object
|
||||||
|
@ -21,5 +21,3 @@ if [[ $? != '0' ]]; then
|
||||||
"Review the output and commit your fixes" >&2
|
"Review the output and commit your fixes" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue