Skip to content

Commit f26a496

Browse files
committed
test: clean up all-lint.py
Removed th check against __file__ which is not necessary any more after the rename to all-lint.py. Changed glob to find only `lint-*.py` scripts.
1 parent 64d72c4 commit f26a496

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/lint/all-lint.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313

1414
exit_code = 0
1515
mod_path = Path(__file__).parent
16-
for lint in glob(f"{mod_path}/lint-*"):
17-
if lint != __file__:
18-
result = run([lint])
19-
if result.returncode != 0:
20-
print(f"^---- failure generated from {lint.split('/')[-1]}")
21-
exit_code |= result.returncode
16+
for lint in glob(f"{mod_path}/lint-*.py"):
17+
result = run([lint])
18+
if result.returncode != 0:
19+
print(f"^---- failure generated from {lint.split('/')[-1]}")
20+
exit_code |= result.returncode
2221

2322
exit(exit_code)

0 commit comments

Comments
 (0)