chore: Reduce bracket in treefmt.nix file
This commit is contained in:
parent
bf34c66f54
commit
f7f3c4e012
1 changed files with 39 additions and 41 deletions
80
treefmt.nix
80
treefmt.nix
|
|
@ -1,46 +1,44 @@
|
||||||
{
|
{
|
||||||
perSystem = {lib, ...}: {
|
perSystem = {lib, ...}: {
|
||||||
treefmt = {
|
treefmt.programs = {
|
||||||
programs = {
|
alejandra = {
|
||||||
alejandra = {
|
enable = true;
|
||||||
enable = true;
|
excludes = ["_sources/*.nix"];
|
||||||
excludes = ["_sources/*.nix"];
|
};
|
||||||
};
|
oxfmt = let
|
||||||
oxfmt = let
|
oxfmtConfig = with lib;
|
||||||
oxfmtConfig = with lib;
|
pipe ./.oxfmtrc.json [builtins.readFile builtins.fromJSON];
|
||||||
pipe ./.oxfmtrc.json [builtins.readFile builtins.fromJSON];
|
in {
|
||||||
in {
|
enable = true;
|
||||||
enable = true;
|
includes = ["*.json" "*.md" "*.toml" "*.yaml"];
|
||||||
includes = ["*.json" "*.md" "*.toml" "*.yaml"];
|
excludes = oxfmtConfig.ignorePatterns;
|
||||||
excludes = oxfmtConfig.ignorePatterns;
|
};
|
||||||
};
|
just = {
|
||||||
just = {
|
enable = true;
|
||||||
enable = true;
|
includes = [".justfile"];
|
||||||
includes = [".justfile"];
|
};
|
||||||
};
|
typos = let
|
||||||
typos = let
|
config = with lib;
|
||||||
config = with lib;
|
pipe ./.typos.toml [builtins.readFile fromTOML];
|
||||||
pipe ./.typos.toml [builtins.readFile fromTOML];
|
in {
|
||||||
in {
|
enable = true;
|
||||||
enable = true;
|
includes = ["*"];
|
||||||
includes = ["*"];
|
excludes = ["assets/*"] ++ config.files.extend-exclude;
|
||||||
excludes = ["assets/*"] ++ config.files.extend-exclude;
|
configFile = toString ./.typos.toml;
|
||||||
configFile = toString ./.typos.toml;
|
# Disable all extra option in treefmt module.
|
||||||
# Disable all extra option in treefmt module.
|
# Use config file.
|
||||||
# Use config file.
|
sort = false;
|
||||||
sort = false;
|
isolated = false;
|
||||||
isolated = false;
|
hidden = false;
|
||||||
hidden = false;
|
noIgnore = false;
|
||||||
noIgnore = false;
|
noIgnoreDot = false;
|
||||||
noIgnoreDot = false;
|
noIgnoreGlobal = false;
|
||||||
noIgnoreGlobal = false;
|
noIgnoreParent = false;
|
||||||
noIgnoreParent = false;
|
noIgnoreVCS = false;
|
||||||
noIgnoreVCS = false;
|
binary = false;
|
||||||
binary = false;
|
noCheckFilenames = false;
|
||||||
noCheckFilenames = false;
|
noCheckFiles = false;
|
||||||
noCheckFiles = false;
|
noUnicode = false;
|
||||||
noUnicode = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue