Repository navigation
Do not traverse into hidden directories - #398
Merged
Merged
Conversation
andymkr
force-pushed
the
skip-hidden-dirs
branch
from
October 19, 2026 17:13
759d072 to
bbaa5d7
Compare
This commit prevents docformatter from traversing into hidden directories that weren't explicitly excluded
andymkr
force-pushed
the
skip-hidden-dirs
branch
from
October 22, 2026 20:17
bbaa5d7 to
14691bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevents docformatter from traversing into hidden directories that weren't explicitly excluded.
Previously, in recursive mode docformatter would go into hidden directories, and drill into them recursively, unless they were explicitly excluded. That caused performance penalty and potentially automatic application of changes inside hidden directories that weren't also explicitly excluded (
.git,.venv, etc.).Steps to reproduce original issue fixed by this commit:
src/docformatter/utils.pypoetry run pytest tests/test_utility_functions.py::test_find_py_files_skips_hidden_directory_recursive