FIX: Misspelled dir
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 10febb6..b629161 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py
@@ -715,7 +715,7 @@ if glob_match.match(root): # skip (absolute) directories del dirs[:] continue - if is_hidden(root, options.check_hidden): + if is_hidden(root, options.check_hidden): # dir itself hidden continue for file_ in files: # ignore hidden files in directories
diff --git a/codespell_lib/tests/test_basic.py b/codespell_lib/tests/test_basic.py index e977059..b766451 100644 --- a/codespell_lib/tests/test_basic.py +++ b/codespell_lib/tests/test_basic.py
@@ -323,14 +323,15 @@ op.join(d, '.abandonned.txt')) == 2 assert cs.main('--check-hidden', '--check-filenames', d) == 2 # hidden directory + assert cs.main(d) == 0 assert cs.main('--check-hidden', d) == 1 assert cs.main('--check-hidden', '--check-filenames', d) == 2 - os.mkdir(op.join(d, '.test')) + os.mkdir(op.join(d, '.abandonned')) copyfile(op.join(d, '.abandonned.txt'), - op.join(d, '.test', 'abandonned.txt')) + op.join(d, '.abandonned', 'abandonned.txt')) assert cs.main(d) == 0 assert cs.main('--check-hidden', d) == 2 - assert cs.main('--check-hidden', '--check-filenames', d) == 4 + assert cs.main('--check-hidden', '--check-filenames', d) == 5 def test_case_handling(tmpdir, capsys):