[+] integrate ruff, pyright into deploy_wheel

This commit is contained in:
Siarhei Siniak 2025-05-17 11:24:26 +03:00
parent 81138aa12e
commit 218af2d173
3 changed files with 23 additions and 1 deletions

@ -5,7 +5,7 @@ project(
).stdout().strip('\n'),
# 'online.fxreader.uv',
# ['c', 'cpp'],
version: '0.1.5.16+27.20',
version: '0.1.5.16+27.21',
# default_options: [
# 'cpp_std=c++23',
# # 'prefer_static=true',

@ -278,6 +278,8 @@ class CLI(abc.ABC):
force: Optional[bool] = None,
env: Optional[dict[str, str]] = None,
mypy: bool = False,
ruff: bool = False,
pyright: bool = False,
tests: bool = False,
) -> None:
project = self.projects[project_name]
@ -305,9 +307,26 @@ class CLI(abc.ABC):
force=force,
)
if ruff:
self.ruff(
project_name=project_name,
argv=['format', '--check',],
)
self.ruff(
project_name=project_name,
argv=[],
)
if mypy:
self.mypy([])
if pyright:
self.pyright(
project_name=project_name,
argv=[],
)
if env is None:
env = dict()

Binary file not shown.