Skip to content

Commit 6ef2d04

Browse files
committed
Add __pypackages__ (PEP 582) to the list of unwanted directories.
1 parent ca15844 commit 6ef2d04

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

domdf_python_tools/paths.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,24 @@
118118
.. versionadded:: 2.3.0
119119
"""
120120

121-
unwanted_dirs = (".git", ".hg", "venv", ".venv", ".mypy_cache", "__pycache__", ".pytest_cache", ".tox", ".tox4")
121+
unwanted_dirs = (
122+
".git",
123+
".hg",
124+
"venv",
125+
".venv",
126+
".mypy_cache",
127+
"__pycache__",
128+
".pytest_cache",
129+
".tox",
130+
".tox4",
131+
"__pypackages__",
132+
)
122133
"""
123134
A list of directories which will likely be unwanted when searching directory trees for files.
124135
125136
.. versionadded:: 2.3.0
126137
.. versionchanged:: 2.9.0 Added ``.hg`` (`mercurial <https://www.mercurial-scm.org>`_)
138+
.. versionchanged:: 3.0.0 Added ``__pypackages__`` (:pep:`582`)
127139
"""
128140

129141

0 commit comments

Comments
 (0)