From 0cee9beaea1436bc8f294850343448227cc59aa5 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 22 Dec 2024 21:07:05 +0300 Subject: [PATCH] [+] improve mypy step while deploy:wheel --- python/cli.py | 1 + python/online/fxreader/pr34/commands_typed/cli.py | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python/cli.py b/python/cli.py index 787a422..26a704e 100644 --- a/python/cli.py +++ b/python/cli.py @@ -139,6 +139,7 @@ class CLI(_cli.CLI): project_name=options.project, argv=args, output_dir=options.output_dir, + mypy=True, ) elif options.command is Command.mypy: self.mypy( diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index 673cbf2..e4c6ccd 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -24,6 +24,7 @@ class Project: source_dir : pathlib.Path build_dir : pathlib.Path dest_dir : pathlib.Path + meson_path: Optional[pathlib.Path] = None @dataclasses.dataclass class Dependency: @@ -157,10 +158,11 @@ class CLI(abc.ABC): assert argv is None or len(argv) == 0 - self.meson_install( - project_name=project_name, - force=force, - ) + if not project.meson_path is None: + self.meson_install( + project_name=project_name, + force=force, + ) if mypy: self.mypy([])