Skip to content

Commit

Permalink
fix: exclude .git
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Dec 23, 2018
1 parent 875823c commit 2a37af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cophi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def corpus(directory, filepath_pattern="*", treat_as=None, encoding="utf-8",

def lazy_reading(filepaths):
for filepath in filepaths:
if filepath.is_file():
if filepath.is_file() and ".git" not in str(filepath):
yield cophi.model.Textfile(filepath, treat_as, encoding)

metadata = cophi.model.Metadata()
Expand Down

0 comments on commit 2a37af1

Please sign in to comment.