Skip to content

Commit

Permalink
Merge pull request #482 from doorstop-dev/hotfix/v2.1.2
Browse files Browse the repository at this point in the history
Skip virtual environments when building trees
  • Loading branch information
jacebrowning authored Jul 6, 2020
2 parents 5ab3c4c + 63ffc00 commit 687acb8
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 140 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.1.2 (2020-07-06)

- Fixed tree builder to skip virtual environments.

# 2.1.1 (2020-02-16)

- Fixed missing `six` dependency.
Expand Down
2 changes: 1 addition & 1 deletion doorstop/core/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def build(cwd=None, root=None, request_next_number=None) -> Tree:
skip_file_name = '.doorstop.skip-all'
if not os.path.isfile(os.path.join(root, skip_file_name)):
_document_from_path(root, root, documents)
exclude_dirnames = {'.git'}
exclude_dirnames = {'.git', '.venv', 'venv'}
if not os.path.isfile(os.path.join(root, skip_file_name)):
for dirpath, dirnames, _ in os.walk(root, topdown=True):
whilelist_dirnames = []
Expand Down
4 changes: 4 additions & 0 deletions doorstop/core/tests/files/.venv/doorstop/reqs/.doorstop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
settings:
digits: 2
prefix: REQ
sep: ''
Loading

0 comments on commit 687acb8

Please sign in to comment.