Skip to content

Commit 6fa9668

Browse files
committed
Ignore Pycodestyle E203 bug.
See: PyCQA/pycodestyle#914
1 parent 53ee415 commit 6fa9668

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

mail_deduplicate/deduplicate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ def report(self):
436436
if stat_id.startswith(prefix):
437437
table.append(
438438
[
439-
stat_id[len(prefix) :].replace("_", " - ").title(),
439+
# XXX noqa ignore pycodestyle bug.
440+
# See: https://github.com/PyCQA/pycodestyle/pull/914
441+
stat_id[len(prefix) :].replace("_", " - ").title(), # noqa
440442
self.stats[stat_id],
441443
"\n".join(textwrap.wrap(desc, 60)),
442444
]

setup.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ allow_dirty = True
77
# https://pycodestyle.readthedocs.io/en/latest/intro.html#configuration
88
[pycodestyle]
99
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
10-
# E203: Temporary ignore while we wait for
11-
# https://github.com/PyCQA/pycodestyle/pull/914 to be merged.
12-
ignore = E203
10+
# Beware of the ignore parameter which is overriding default sensitive rule list. See:
11+
# https://github.com/PyCQA/pycodestyle/blame/a1b1f7c795ace4c186fd76ec6df994deb716cea8/docs/intro.rst#L434-L435
12+
# https://github.com/PyCQA/pycodestyle/issues/965
13+
ignore =
1314
show-source = True
1415
statistics = True
1516
# Aligns to black's config.

0 commit comments

Comments
 (0)