fix mypy errors

This commit is contained in:
Jörg Thalheim
2023-08-23 12:32:06 +02:00
parent 7b7a367ff4
commit 59e31b3c56
3 changed files with 27 additions and 37 deletions

View File

@@ -5,11 +5,17 @@
imports = [
inputs.treefmt-nix.flakeModule
];
perSystem = { pkgs, ... }: {
perSystem = { self', pkgs, ... }: {
treefmt.projectRootFile = "flake.nix";
treefmt.flakeCheck = true;
treefmt.flakeFormatter = true;
treefmt.programs.shellcheck.enable = true;
treefmt.programs.mypy.enable = true;
treefmt.programs.mypy.directories = {
"pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.testDependencies;
};
treefmt.settings.formatter.nix = {
command = "sh";
options = [
@@ -38,4 +44,3 @@
};
};
}