Fix flake8
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 2296ea9..7d490c6 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py
@@ -28,7 +28,8 @@ import textwrap word_regex_def = u"[\\w\\-'’`]+" -uri_regex_def = u"\\b((?:https?|t?ftp|file|git|smb)://[^\\s'\"]*|[\\w.%+-]+@[\\w.-]+)\\b" +uri_regex_def = (u"\\b((?:https?|t?ftp|file|git|smb)://[^\\s'\"]*|" + u"[\\w.%+-]+@[\\w.-]+)\\b") encodings = ('utf-8', 'iso-8859-1') USAGE = """ \t%prog [OPTIONS] [file1 file2 ... fileN] @@ -598,8 +599,8 @@ asked_for = set() check_words = extract_words(line, word_regex, ignore_word_regex) - apply_uri_ignore_words(check_words, line, word_regex, ignore_word_regex, - uri_regex, uri_ignore_words) + apply_uri_ignore_words(check_words, line, word_regex, + ignore_word_regex, uri_regex, uri_ignore_words) for word in check_words: lword = word.lower()
diff --git a/codespell_lib/tests/test_basic.py b/codespell_lib/tests/test_basic.py index 7afe15d..fdca25c 100644 --- a/codespell_lib/tests/test_basic.py +++ b/codespell_lib/tests/test_basic.py
@@ -530,8 +530,8 @@ '# Please see http://exam.com/ple#abandonned for info\n', '# Please see http://exam.com/ple?abandonned for info\n', '# Please see http://127.0.0.1/abandonned for info\n', - '# Please see http://[2001:0db8:85a3:0000:0000:8a2e:0370:' - '7334]/abandonned for info\n'): + '# Please see http://[2001:0db8:85a3:0000:0000:8a2e:0370' + ':7334]/abandonned for info\n'): with open(op.join(d, 'flag.txt'), 'w') as f: f.write(variation) assert cs.main(f.name) == 1, variation