[+] improve logging
This commit is contained in:
parent
cf840258c2
commit
3ef16b70de
@ -107,13 +107,19 @@ class CLI(abc.ABC):
|
|||||||
if len(argv) == 0:
|
if len(argv) == 0:
|
||||||
argv = ['check', '.',]
|
argv = ['check', '.',]
|
||||||
|
|
||||||
subprocess.check_call([
|
cmd = [
|
||||||
self.dist_settings.python_path,
|
str(self.dist_settings.python_path),
|
||||||
'-m',
|
'-m',
|
||||||
'ruff',
|
'ruff',
|
||||||
'--config', str(project.source_dir / 'pyproject.toml'),
|
'--config', str(project.source_dir / 'pyproject.toml'),
|
||||||
*argv,
|
*argv,
|
||||||
])
|
]
|
||||||
|
|
||||||
|
logger.info(dict(
|
||||||
|
cmd=cmd,
|
||||||
|
))
|
||||||
|
|
||||||
|
subprocess.check_call(cmd)
|
||||||
|
|
||||||
def pyright(
|
def pyright(
|
||||||
self,
|
self,
|
||||||
@ -543,6 +549,8 @@ class CLI(abc.ABC):
|
|||||||
|
|
||||||
project = self.projects[project_name]
|
project = self.projects[project_name]
|
||||||
|
|
||||||
|
bootstrap_settings = cli_bootstrap.BootstrapSettings.get()
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f',
|
'-f',
|
||||||
@ -555,7 +563,7 @@ class CLI(abc.ABC):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-p',
|
'-p',
|
||||||
dest='python_version',
|
dest='python_version',
|
||||||
default=None,
|
default=bootstrap_settings.python_version,
|
||||||
# type=pathlib.Path,
|
# type=pathlib.Path,
|
||||||
type=str,
|
type=str,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user