Skip to content

Commit

Permalink
Merge pull request strictdoc-project#1521 from strictdoc-project/stan…
Browse files Browse the repository at this point in the history
…islaw/git_work_count_changes

file_tree: improve file finding filter
  • Loading branch information
stanislaw authored Dec 22, 2023
2 parents f387463 + a30981a commit 63fd784
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion strictdoc/core/file_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,14 @@ def find_files_with_extensions(
dirs[:] = [
d
for d in dirs
if (not d.startswith(".") and not d.startswith("_"))
if (
not d.startswith(".")
and not d.startswith("_")
and d != "build"
and d != "output"
and d != "Output"
and d != "tests"
)
]
dirs.sort(key=alphanumeric_sort)

Expand Down Expand Up @@ -259,6 +266,8 @@ def find_directories(root_path, directory):
d
for d in dirs
if not d.startswith(".")
and not d.startswith("__")
and d != "build"
and d != "output"
and d != "Output"
and d != "tests"
Expand Down

0 comments on commit 63fd784

Please sign in to comment.