ty does not enforce existence of type signatures on functions, so use ruff to do it

This commit is contained in:
Kovid Goyal
2026-07-07 13:56:54 +05:30
parent cc95fccc8d
commit 8860f1a0a7
8 changed files with 78 additions and 69 deletions

View File

@@ -60,7 +60,7 @@ def build_frozen_launcher(extra_include_dirs):
return build_frozen_launcher.writeable_src_dir
def run_tests(kitty_exe):
def run_tests(kitty_exe) -> None:
with tempfile.TemporaryDirectory() as tdir:
uenv = {
'KITTY_CONFIG_DIRECTORY': os.path.join(tdir, 'conf'),
@@ -78,7 +78,7 @@ def run_tests(kitty_exe):
raise SystemExit('Checking of kitty build failed')
def build_frozen_tools(kitty_exe):
def build_frozen_tools(kitty_exe) -> None:
cmd = SETUP_CMD + ['--prefix', os.path.dirname(kitty_exe)] + ['build-frozen-tools']
if run(*cmd, cwd=build_frozen_launcher.writeable_src_dir) != 0:
print('Building of frozen kitten failed', file=sys.stderr)