diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index 23db06c..88643ce 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -107,13 +107,19 @@ class CLI(abc.ABC): if len(argv) == 0: argv = ['check', '.',] - subprocess.check_call([ - self.dist_settings.python_path, + cmd = [ + str(self.dist_settings.python_path), '-m', 'ruff', '--config', str(project.source_dir / 'pyproject.toml'), *argv, - ]) + ] + + logger.info(dict( + cmd=cmd, + )) + + subprocess.check_call(cmd) def pyright( self, @@ -543,6 +549,8 @@ class CLI(abc.ABC): project = self.projects[project_name] + bootstrap_settings = cli_bootstrap.BootstrapSettings.get() + parser = argparse.ArgumentParser() parser.add_argument( '-f', @@ -555,7 +563,7 @@ class CLI(abc.ABC): parser.add_argument( '-p', dest='python_version', - default=None, + default=bootstrap_settings.python_version, # type=pathlib.Path, type=str, )