update treefmt configuration

This commit is contained in:
Jörg Thalheim 2024-07-15 10:54:23 +02:00
parent 9734eba858
commit a51bd670d6
4 changed files with 16 additions and 20 deletions

View file

@ -10,10 +10,10 @@ jobs:
tests:
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]
# FIXME macos garbage currently collect also nix-shell that runs the test
#os: [ ubuntu-latest, macos-latest ]
variants: [ stable, latest, bash4 ]
variants: [stable, latest, bash4]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
@ -22,5 +22,4 @@ jobs:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- run:
"nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"
- run: "nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"

View file

@ -18,15 +18,12 @@
shellcheck.enable = true;
shfmt.enable = true;
statix.enable = true;
yamlfmt.enable = true;
};
settings.formatter =
let
shellIncludes = [ "*.sh" "direnvrc" ];
in
{
shellcheck.includes = shellIncludes;
shfmt.includes = shellIncludes;
settings.formatter = {
shellcheck.includes = [ "direnvrc" ];
shfmt.includes = [ "direnvrc" ];
};
};
};