1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 21:17:45 +00:00

style: treefmt all the things

This commit is contained in:
David Arnold 2022-01-29 20:32:36 -05:00
parent 0f227ee76a
commit baa158d51c
2 changed files with 12 additions and 12 deletions

View file

@ -40,12 +40,12 @@
[^benchmark-specs] [^benchmark-specs]
| Cores | Seconds | | Cores | Seconds |
|:-----:|:--------: | :---: | :-----: |
| 1 | 40 | | 1 | 40 |
| 2 | 21 | | 2 | 21 |
| 4 | 15 | | 4 | 15 |
| 8 | 11 | | 8 | 11 |
| 16 | 10 | | 16 | 10 |
- ✔️ **Powerful** - ✔️ **Powerful**
@ -84,6 +84,7 @@ Let's get Alejandra on our systems:
- Nix stable: - Nix stable:
Pick one depending on your platform: Pick one depending on your platform:
```bash ```bash
$ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/main $ nix-env -ivA aarch64-darwin -f https://github.com/kamadorueda/alejandra/tarball/main
$ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/main $ nix-env -ivA aarch64-linux -f https://github.com/kamadorueda/alejandra/tarball/main
@ -118,7 +119,6 @@ Let's get Alejandra on our systems:
## Footnotes ## Footnotes
[^benchmark-specs]: [^benchmark-specs]:
Running on a [machine](https://github.com/kamadorueda/machine) with: Running on a [machine](https://github.com/kamadorueda/machine) with:
- CPU: 16 x Intel(R) Core(TM) i7-10700K - CPU: 16 x Intel(R) Core(TM) i7-10700K
@ -126,9 +126,7 @@ Let's get Alejandra on our systems:
- BogoMips: 7599.80 - BogoMips: 7599.80
- Cache Size: 16384 KB - Cache Size: 16384 KB
[^semantic-changes]: [^semantic-changes]: The methodology to claim this is:
The methodology to claim this is:
1. Checkout [Nixpkgs](https://github.com/nixos/nixpkgs) and run: 1. Checkout [Nixpkgs](https://github.com/nixos/nixpkgs) and run:

View file

@ -23,8 +23,10 @@ includes = [
[formatter.shell] [formatter.shell]
command = "shfmt" command = "shfmt"
options = [ options = [
"-i", "-bn", # binary ops like && and | may start a line
"2", # indent 2 "-ci", # switch cases will be indented
"-sr", # redirect operators will be followed by a space
"-i", "2", # indent 2
"-s", # simplify the code "-s", # simplify the code
"-w", # write back to the file "-w", # write back to the file
] ]