mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-12 05:26:41 -04:00
32 lines
585 B
Nix
32 lines
585 B
Nix
![]() |
{ pkgs, ... }: {
|
||
|
# Used to find the project root
|
||
|
projectRootFile = "flake.lock";
|
||
|
|
||
|
settings.formatter = {
|
||
|
nix = {
|
||
|
command = "sh";
|
||
|
options = [
|
||
|
"-eucx"
|
||
|
''
|
||
|
${pkgs.lib.getExe pkgs.nixpkgs-fmt} "$@"
|
||
|
''
|
||
|
"--"
|
||
|
];
|
||
|
includes = [ "*.nix" ];
|
||
|
excludes = [ ];
|
||
|
};
|
||
|
|
||
|
python = {
|
||
|
command = "sh";
|
||
|
options = [
|
||
|
"-eucx"
|
||
|
''
|
||
|
${pkgs.lib.getExe pkgs.python3.pkgs.black} "$@"
|
||
|
''
|
||
|
"--" # this argument is ignored by bash
|
||
|
];
|
||
|
includes = [ "*.py" ];
|
||
|
};
|
||
|
};
|
||
|
}
|