Skip to content

Commit 38bc4e6

Browse files
committed
style: πŸ’„ Format output
1 parent 83d674b commit 38bc4e6

File tree

3 files changed

+5
-80
lines changed

3 files changed

+5
-80
lines changed

β€Žpoetry.lockβ€Ž

Lines changed: 1 addition & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyproject.tomlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ aiohttp = "^3.9.0"
1818
pyyaml = "^6.0.1"
1919
rich = "^13.7.1"
2020
pathspec = "^0.12.1"
21-
halo = "^0.0.31"
2221

2322
[tool.pytest.ini_options]
2423
addopts = "--tb=short"

β€Žtests/regression.pyβ€Ž

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import tempfile
77
from pathlib import Path
88

9-
from halo import Halo
109
from rich.console import Console
1110
from sh import git
1211

@@ -50,14 +49,12 @@ def save_report(path: Path, report: Report) -> Path:
5049
def scan_repo(owner: str, name: str, tag: str) -> Report:
5150
tmp_dir = tempfile.mkdtemp()
5251
os.chdir(tmp_dir)
53-
spinner = Halo(text='Cloning repository', spinner='dots')
54-
spinner.start()
52+
info('Cloning repository...')
5553
git('clone', '--depth', '1', '--branch', tag, f'https://github.com/{owner}/{name}.git')
56-
spinner.succeed('Repository cloned')
57-
spinner = Halo(text='Scanning codebase', spinner='dots')
58-
spinner.start()
54+
success('Repository cloned')
55+
info('Scanning codebase...')
5956
codebase = scan_path(Path(tmp_dir).joinpath(name))
60-
spinner.succeed('Codebase scanned')
57+
success('Codebase scanned')
6158
shutil.rmtree(tmp_dir)
6259
codebase.aggregate()
6360
return Report(codebase)

0 commit comments

Comments
Β (0)