[+] improve logging
This commit is contained in:
parent
cf840258c2
commit
3ef16b70de
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user