Skip to content

Commit

Permalink
Ignore Pycodestyle E203 bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Dec 7, 2020
1 parent 53ee415 commit 6fa9668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion mail_deduplicate/deduplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ def report(self):
if stat_id.startswith(prefix):
table.append(
[
stat_id[len(prefix) :].replace("_", " - ").title(),
# XXX noqa ignore pycodestyle bug.
# See: https://github.com/PyCQA/pycodestyle/pull/914
stat_id[len(prefix) :].replace("_", " - ").title(), # noqa
self.stats[stat_id],
"\n".join(textwrap.wrap(desc, 60)),
]
Expand Down
7 changes: 4 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ allow_dirty = True
# https://pycodestyle.readthedocs.io/en/latest/intro.html#configuration
[pycodestyle]
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# E203: Temporary ignore while we wait for
# https://github.com/PyCQA/pycodestyle/pull/914 to be merged.
ignore = E203
# Beware of the ignore parameter which is overriding default sensitive rule list. See:
# https://github.com/PyCQA/pycodestyle/blame/a1b1f7c795ace4c186fd76ec6df994deb716cea8/docs/intro.rst#L434-L435
# https://github.com/PyCQA/pycodestyle/issues/965
ignore =
show-source = True
statistics = True
# Aligns to black's config.
Expand Down

0 comments on commit 6fa9668

Please sign in to comment.