Skip to content

Commit 56f360f

Browse files
committed
chore:clarify
Signed-off-by: Jos Verlinde <[email protected]>
1 parent b053d92 commit 56f360f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/stubber/utils/post.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
def do_post_processing(stub_paths: List[Path], pyi: bool, black: bool):
1414
"Common post processing"
15-
for pth in stub_paths:
15+
for path in stub_paths:
1616
if pyi:
17-
log.debug("Generate type hint files (pyi) in folder: {}".format(pth))
18-
generate_pyi_files(pth)
17+
log.debug("Generate type hint files (pyi) in folder: {}".format(path))
18+
generate_pyi_files(path)
1919
if black:
20-
run_black(pth)
20+
run_black(path)
2121

2222

2323
def run_black(path: Path, capture_output: bool = False):
@@ -56,7 +56,7 @@ def run_autoflake(path: Path, capture_output: bool = False, process_pyi: bool =
5656
log.debug("Running autoflake on: {}".format(path))
5757
# subprocess.run(cmd, capture_output=log.level >= logging.INFO)
5858
result = subprocess.run(cmd, capture_output=capture_output)
59-
if result.returncode != 0: # pragma: no cover
59+
if result.returncode != 0: # pragma: no cover
6060
log.warning(f"autoflake failed on: {path}")
6161
ret = result.returncode
6262

0 commit comments

Comments
 (0)