mypy: fix clan-cli import in vm-manager
This commit is contained in:
parent
823b5e67ed
commit
6ae2615d31
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user