Skip to content

Commit

Permalink
Tidy up and add flake8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Mar 22, 2019
1 parent c7d8064 commit df49e2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .flake8
@@ -0,0 +1,4 @@
[flake8]
ignore = E203, E266, E501, E731, W503
max-line-length = 80
select = B,C,E,F,W,T4,B9
2 changes: 1 addition & 1 deletion wasabi/tests/test_printer.py
Expand Up @@ -160,4 +160,4 @@ def test_printer_none_encoding(monkeypatch):
"""Test that printer works even if sys.stdout.encoding is set to None. This
previously caused a very confusing error."""
monkeypatch.setattr("sys.stdout.encoding", None)
p = Printer()
p = Printer() # noqa: F841
3 changes: 1 addition & 2 deletions wasabi/tests/test_util.py
Expand Up @@ -2,8 +2,7 @@
from __future__ import unicode_literals, print_function

import pytest
import locale
from wasabi.util import color, wrap, locale_escape, supports_ansi, format_repr
from wasabi.util import color, wrap, locale_escape, format_repr


def test_color():
Expand Down
2 changes: 1 addition & 1 deletion wasabi/traceback.py
@@ -1,7 +1,7 @@
# coding: utf8
from __future__ import unicode_literals, print_function

from .util import color, to_string, supports_ansi, locale_escape, NO_UTF8
from .util import color, supports_ansi, NO_UTF8


LINE_EDGE = "鈹斺攢" if not NO_UTF8 else "|_"
Expand Down

0 comments on commit df49e2f

Please sign in to comment.