Skip to content

Commit

Permalink
fix: pre-commit-hook taplo bug
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
  • Loading branch information
cafkafk committed Sep 26, 2024
1 parent 1a92869 commit 308bd1a
Show file tree
Hide file tree
Showing 152 changed files with 164 additions and 144 deletions.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@
singleStep = true;
# set itests files creation date to unix epoch
buildPhase = ''
touch --date=@0 tests/itest/* && bash devtools/dir-generator.sh tests/test_dir
bash devtools/dir-generator.sh tests/test_dir
bash devtools/generate-timestamp-test-dir.sh tests/timestamp_test_dir
touch --date=@0 tests/itest/*
touch --date=@0 tests/ptests/*;
fd -e stdout -e stderr -H -t file -X sed -i 's/[CWD]\//\/build\/source\//g'
'';
cargoTestOptions =
opts:
Expand Down Expand Up @@ -298,6 +301,7 @@
toFilter = [
"yamlfmt"
"nixfmt"
"taplo"
];
filterFn = n: _v: (!builtins.elem n toFilter);
treefmtFormatters = pkgs.lib.mapAttrs (_n: v: { inherit (v) enable; }) (
Expand Down
2 changes: 1 addition & 1 deletion powertest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ commands:
- Name
- name
- newest
- none
#- none seems non-deterministic
- oldest
- size
- time
Expand Down
2 changes: 2 additions & 0 deletions tests/ptests/ptest_109771b99ff4bc2c.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -F never"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_10c50228fc1c6107.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -s newest"
args = "tests/test_dir -l -s newest"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1128756497bbcbce.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --modified "
args = "tests/test_dir --modified "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_13234446d830648.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --time-style default"
args = "tests/test_dir --time-style default"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_132ac9f159c3473e.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort newest"
args = "tests/test_dir -l --sort newest"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_13c76530584f9804.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --time-style full-iso"
args = "tests/test_dir --time-style full-iso"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_14c5df14f800bc28.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort Ext"
args = "tests/test_dir -l --sort Ext"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_182085f8602ed2aa.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -t modified"
args = "tests/test_dir -l -t modified"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1889daad10054484.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --extended "
args = "tests/test_dir --extended "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_19cf21a43f373b6.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --links "
args = "tests/test_dir --links "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1ab8279d631495b0.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort oldest"
args = "tests/test_dir -l --sort oldest"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1c990fbac951fdaf.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --color auto"
args = "tests/test_dir --color auto"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1e61d8c305ff6c48.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort age"
args = "tests/test_dir -l --sort age"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_1ec7257c14635d03.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -S "
args = "tests/test_dir -S "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2092f19a0d4ea1a2.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --width 200"
args = "tests/test_dir --width 200"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2176b1b061cb7da2.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort size"
args = "tests/test_dir -l --sort size"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_219303a91ed6056a.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --list-dirs "
args = "tests/test_dir --list-dirs "
2 changes: 2 additions & 0 deletions tests/ptests/ptest_219f7c8dfa0d0323.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -F always"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2439b7d68089135b.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --help "
args = "tests/test_dir --help "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_247e5acfcf9ba3a8.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --no-user "
args = "tests/test_dir --no-user "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_283667fe5d9c3015.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --no-quotes "
args = "tests/test_dir --no-quotes "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_298b768f6bb48dac.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree --level 5"
args = "tests/test_dir --tree --level 5"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2cccf6c2af490359.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --time-style iso"
args = "tests/test_dir --time-style iso"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2dcffc4f000d924e.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --group-directories-first "
args = "tests/test_dir --group-directories-first "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_3259dc201df8e734.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree -L 2"
args = "tests/test_dir --tree -L 2"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_32870705e39ad648.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --width 30"
args = "tests/test_dir --width 30"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_32e159e8f043025.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --git "
args = "tests/test_dir --git "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_33a4632005ea6e7f.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort name"
args = "tests/test_dir -l --sort name"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_36127172d1c48ad1.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --width 15"
args = "tests/test_dir --width 15"
2 changes: 2 additions & 0 deletions tests/ptests/ptest_365b1525fed70635.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --classify never"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_36ff749946aa7b76.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --grid "
args = "tests/test_dir --grid "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_38c83409ee57e2af.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir "
args = "tests/test_dir "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_39a4ecaff3909961.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --no-git "
args = "tests/test_dir --no-git "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_39b4326562c3f75f.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --all "
args = "tests/test_dir --all "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_3a8ed471ff49be49.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort filename"
args = "tests/test_dir -l --sort filename"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_3b5b6fd2802ba8f9.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -s filename"
args = "tests/test_dir -l -s filename"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_3bed5866e590e62a.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --ignore-glob *.toml"
args = "tests/test_dir -l --ignore-glob *.toml"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_3f0c3a89d3fcf7d3.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --group "
args = "tests/test_dir --group "
2 changes: 2 additions & 0 deletions tests/ptests/ptest_3fe14fdeb5bf19de.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --classify auto"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_404fbc2fe3e5c85.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -i "
args = "tests/test_dir -i "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_41b5466dabf23647.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree --level 3"
args = "tests/test_dir --tree --level 3"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_458d0cef9ea1a5b9.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --only-files "
args = "tests/test_dir --only-files "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_469e79a86c2c874f.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort modified"
args = "tests/test_dir -l --sort modified"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_46a8435d247c34c9.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree --level 4"
args = "tests/test_dir --tree --level 4"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4805a91da5df26.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -x "
args = "tests/test_dir -x "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4974d70325cb7550.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --mounts "
args = "tests/test_dir --mounts "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4b0ed60c44c669f.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree "
args = "tests/test_dir --tree "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4b30f7de50929327.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --absolute follow"
args = "tests/test_dir --absolute follow"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4b538407f6a872e8.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --only-dirs "
args = "tests/test_dir --only-dirs "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4b7165c936488151.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --absolute off"
args = "tests/test_dir --absolute off"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4e899e9b065acc8f.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --color never"
args = "tests/test_dir --color never"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4fd72fa9235ffc80.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -u "
args = "tests/test_dir -u "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_4ff72fb4d6bc110e.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --bytes "
args = "tests/test_dir --bytes "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_514bf873279385ba.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --git-ignore "
args = "tests/test_dir --git-ignore "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_52961e9e4d3030fc.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --git-repos "
args = "tests/test_dir --git-repos "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_55383760e4618c41.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort type"
args = "tests/test_dir -l --sort type"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_5709b91eb3610886.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --blocksize "
args = "tests/test_dir --blocksize "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_57a5aac99c0c821c.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -R "
args = "tests/test_dir -R "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_581533c37ac03853.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --icons never"
args = "tests/test_dir --icons never"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_585bdfd3218af4a0.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --accessed "
args = "tests/test_dir --accessed "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_5ba3cfebbb42c1f9.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -s Ext"
args = "tests/test_dir -l -s Ext"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_62034c92edbb1244.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -n "
args = "tests/test_dir -n "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_631e7c0eadc876e3.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --dereference "
args = "tests/test_dir --dereference "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_66a65e6644555c05.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -I *.toml"
args = "tests/test_dir -l -I *.toml"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_69fb8da018a73af3.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --colour always"
args = "tests/test_dir --colour always"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_6abf99c853aede16.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --numeric "
args = "tests/test_dir --numeric "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_6d64a7584b621832.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --icons always"
args = "tests/test_dir --icons always"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_6e6893c2c2254622.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l --sort time"
args = "tests/test_dir -l --sort time"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_6eabf01c1fcde44e.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -r "
args = "tests/test_dir -r "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_7212f6096d7b2f6c.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l "
args = "tests/test_dir -l "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_72f8f65472fcd4fa.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --tree -L 4"
args = "tests/test_dir --tree -L 4"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_74825603975f419c.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --octal-permissions "
args = "tests/test_dir --octal-permissions "
2 changes: 1 addition & 1 deletion tests/ptests/ptest_767aca4b412a3f3e.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir --color always"
args = "tests/test_dir --color always"
2 changes: 1 addition & 1 deletion tests/ptests/ptest_79116932e9ca8b26.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin.name = "eza"
args = "tests/test_dir -l -s extension"
args = "tests/test_dir -l -s extension"
Loading

0 comments on commit 308bd1a

Please sign in to comment.