Skip to content

Commit

Permalink
Merge branch 'fix-doorstop-ignore' into 'main'
Browse files Browse the repository at this point in the history
Remove unnecessary * from ignore pattern

Closes #7

See merge request sif/process/doorstop!17
  • Loading branch information
lbiaggi committed Aug 2, 2024
2 parents 7ecef66 + 396bcaa commit c035223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doorstop/core/vcs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def ignores(self):
for line in common.read_lines(path):
pattern = line.strip(" @\\/*\n")
if pattern and not pattern.startswith("#"):
self._ignores_cache.append("*" + pattern + "*")
self._ignores_cache.append(pattern + "*")
yield from self._ignores_cache

@property
Expand Down
4 changes: 2 additions & 2 deletions doorstop/core/vcs/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def test_ignores(self):
patterns = list(self.wc.ignores)
for pattern in patterns:
print(pattern)
self.assertIn("*__pycache__*", patterns)
self.assertIn("*build*", patterns)
self.assertIn("__pycache__*", patterns)
self.assertIn("build*", patterns)

0 comments on commit c035223

Please sign in to comment.