forked from clan/clan-core
Merge pull request 'clan-cli: Add py.typed to make mypy work when used as library in clan-vm-manager' (#923) from Qubasa-main into main
This commit is contained in:
commit
bfa6ff6085
@ -15,6 +15,7 @@
|
||||
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 = {
|
||||
|
0
pkgs/clan-cli/clan_cli/py.typed
Normal file
0
pkgs/clan-cli/clan_cli/py.typed
Normal file
@ -12,7 +12,7 @@ scripts = { clan = "clan_cli:main" }
|
||||
exclude = ["clan_cli.nixpkgs*", "result"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
clan_cli = ["config/jsonschema/*", "webui/assets/**/*", "vms/mimetypes/**/*"]
|
||||
clan_cli = ["py.typed", "config/jsonschema/*", "webui/assets/**/*", "vms/mimetypes/**/*"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = "tests"
|
||||
@ -29,7 +29,6 @@ warn_redundant_casts = true
|
||||
disallow_untyped_calls = true
|
||||
disallow_untyped_defs = true
|
||||
no_implicit_optional = true
|
||||
disable_error_code = ["has-type"]
|
||||
exclude = "clan_cli.nixpkgs"
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
|
Loading…
Reference in New Issue
Block a user