Skip to content

Commit b183125

Browse files
Merge pull request #584 from linsword13/fix-style
Avoid style checking on removed files
2 parents 6eae52f + cf86d56 commit b183125

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ramble/ramble/cmd/style.py

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ def changed_files(base=None, untracked=True, all_files=False):
169169
if any(os.path.realpath(f).startswith(e) for e in excludes):
170170
continue
171171

172+
# Exclude non-existent files
173+
if not os.path.exists(f):
174+
continue
175+
172176
changed.add(f)
173177

174178
return sorted(changed)

0 commit comments

Comments
 (0)