Skip to content

Commit e17e638

Browse files
committed
Prepare for release.
1 parent 5e0fec0 commit e17e638

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

domdf_python_tools/paths.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@
115115
.. versionadded:: 2.3.0
116116
"""
117117

118-
unwanted_dirs = (".git", "venv", ".venv", ".mypy_cache", "__pycache__", ".pytest_cache", ".tox", ".tox4")
118+
unwanted_dirs = (".git", ".hg", "venv", ".venv", ".mypy_cache", "__pycache__", ".pytest_cache", ".tox", ".tox4")
119119
"""
120120
A list of directories which will likely be unwanted when searching directory trees for files.
121121
122122
.. versionadded:: 2.3.0
123+
.. versionchanged:: 2.9.0 Added ``.hg`` (`mercurial <https://www.mercurial-scm.org>`_)
123124
"""
124125

125126

@@ -1068,9 +1069,9 @@ def sort_paths(*paths: PathLike) -> List[PathPlus]:
10681069
"""
10691070
Sort the ``paths`` by directory, then by file.
10701071
1071-
:param paths:
1072-
10731072
.. versionadded:: 2.6.0
1073+
1074+
:param paths:
10741075
"""
10751076

10761077
directories: Dict[str, List[PathPlus]] = defaultdict(list)
@@ -1160,7 +1161,7 @@ def phase4(self) -> None: # noqa: D102
11601161
methodmap = _methodmap # type: ignore
11611162

11621163

1163-
def compare_dirs(a: PathLike, b: PathLike):
1164+
def compare_dirs(a: PathLike, b: PathLike) -> bool:
11641165
"""
11651166
Compare the content of two directory trees.
11661167

0 commit comments

Comments
 (0)