mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
update treefmt configuration
This commit is contained in:
parent
9734eba858
commit
a51bd670d6
4 changed files with 16 additions and 20 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -10,10 +10,10 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest ]
|
os: [ubuntu-latest]
|
||||||
# FIXME macos garbage currently collect also nix-shell that runs the test
|
# FIXME macos garbage currently collect also nix-shell that runs the test
|
||||||
#os: [ ubuntu-latest, macos-latest ]
|
#os: [ ubuntu-latest, macos-latest ]
|
||||||
variants: [ stable, latest, bash4 ]
|
variants: [stable, latest, bash4]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -22,5 +22,4 @@ jobs:
|
||||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
- run:
|
- run: "nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"
|
||||||
"nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"
|
|
||||||
|
|
|
||||||
11
treefmt.nix
11
treefmt.nix
|
|
@ -18,15 +18,12 @@
|
||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
shfmt.enable = true;
|
shfmt.enable = true;
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
|
yamlfmt.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.formatter =
|
settings.formatter = {
|
||||||
let
|
shellcheck.includes = [ "direnvrc" ];
|
||||||
shellIncludes = [ "*.sh" "direnvrc" ];
|
shfmt.includes = [ "direnvrc" ];
|
||||||
in
|
|
||||||
{
|
|
||||||
shellcheck.includes = shellIncludes;
|
|
||||||
shfmt.includes = shellIncludes;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue