Check that we correctly handle nested hidden subdirectories

As mentioned by @DimitriPapadopoulos in https://github.com/codespell-project/codespell/issues/2539#issuecomment-1283830779
1 file changed