Skip to content

Commit f141c90

Browse files
committed
Implement comment in exclude file
1 parent e5c8d05 commit f141c90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jumpsuite/jumpsuite.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def load_exclude_file():
3939
or_this_file.py
4040
4141
lib/*.py
42+
# some comment
4243
some_function_to_ignore
4344
another_function
4445
@@ -50,7 +51,9 @@ def load_exclude_file():
5051
last_file = []
5152
if os.path.exists(exclude_file):
5253
for line in open(exclude_file):
53-
if line.startswith('\t') or line.startswith(' '):
54+
if line.strip().startswith('#'):
55+
pass # comment
56+
elif line.startswith('\t') or line.startswith(' '):
5457
last_file.append(line.strip())
5558
elif line.strip():
5659
last_file = excludes[line.strip()] = []

0 commit comments

Comments
 (0)