mypy: fix clan-cli import in vm-manager

This commit is contained in:
Jörg Thalheim 2024-03-12 16:49:18 +01:00 committed by Mic92
parent 4ef513de58
commit 934cf6e57a
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,6 @@
treefmt.programs.mypy.directories = {
"pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.pytestDependencies;
"pkgs/clan-vm-manager".extraPythonPackages = self'.packages.clan-vm-manager.propagatedBuildInputs;
# "pkgs/clan-vm-manager".options = ["--verbose"];
};
treefmt.settings.formatter.nix = {

View File

@ -44,7 +44,11 @@ python3.pkgs.buildPythonApplication {
buildInputs = [ gtk4 libadwaita gnome.adwaita-icon-theme ];
# We need to propagate the build inputs to nix fmt / treefmt
propagatedBuildInputs = [ pygobject3 clan-cli pygobject-stubs ];
propagatedBuildInputs = [
(python3.pkgs.toPythonModule clan-cli)
pygobject3
pygobject-stubs
];
# also re-expose dependencies so we test them in CI
passthru = {

View File

@ -22,10 +22,6 @@ disallow_untyped_calls = true
disallow_untyped_defs = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = "clan_cli.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
line-length = 88