Skip to content

Commit e952d6f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 39ed8e9 commit e952d6f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

codespell_lib/_spellchecker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
Copyright (C) 2010-2011 Lucas De Marchi <lucas.de.marchi@gmail.com>
1616
Copyright (C) 2011 ProFUSION embedded systems
1717
"""
18+
1819
import sys
1920

2021
# Pass all misspellings through this translation table to generate
@@ -56,7 +57,7 @@ def build_dict(
5657
translate_tables = [(x, str.maketrans(x, y)) for x, y in alt_chars]
5758
for line in f:
5859
left, pound, _ = line.partition("#")
59-
if pound and left and left[-1] not in (' ', '\t'):
60+
if pound and left and left[-1] not in (" ", "\t"):
6061
print(
6162
f"WARNING: {filename}: missing spaces before #: {line.rstrip()!r}",
6263
file=sys.stderr,

codespell_lib/tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,4 +1555,4 @@ def test_dict_comments(
15551555
assert code == 1
15561556
assert "abandonned ==> abandoned" in stdout
15571557
assert "occured ==> occurred" not in stdout
1558-
assert "missing spaces before #" in stderr
1558+
assert "missing spaces before #" in stderr

0 commit comments

Comments
 (0)