Skip to content

Commit 5a1984e

Browse files
committed
chore: fix travis build
1 parent 561d8f5 commit 5a1984e

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.flake8

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[flake8]
2+
ignore = E203, E266, E501, W503, E402
23
max-line-length = 80
3-
select = C,E,F,W,B,B950
4-
ignore = E501, E402
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9

sentry_minimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from contextlib import contextmanager
22

33

4-
__all__ = []
4+
__all__ = ["Scope", "Hub"]
55

66

77
def public(f):

sentry_sdk/_compat.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
PY2 = sys.version_info[0] == 2
55

66
if PY2:
7-
import urlparse # noqa
7+
import urlparse # noqa
88

9-
text_type = unicode # noqa
10-
import Queue as queue # noqa
9+
text_type = unicode # noqa
10+
import Queue as queue # noqa
1111

12-
number_types = (int, long, float) # noqa
12+
number_types = (int, long, float) # noqa
1313

1414
def implements_str(cls):
1515
cls.__unicode__ = cls.__str__
16-
cls.__str__ = lambda x: unicode(x).encode("utf-8") # noqa
16+
cls.__str__ = lambda x: unicode(x).encode("utf-8") # noqa
1717
return cls
1818

1919

2020
else:
21-
import urllib.parse as urlparse # noqa
22-
import queue # noqa
21+
import urllib.parse as urlparse # noqa
22+
import queue # noqa
2323

2424
text_type = str
2525
number_types = (int, float)

sentry_sdk/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ def get_lines_from_file(filename, lineno, loader=None, module=None):
172172
pre_context = [line.strip("\r\n") for line in source[lower_bound:lineno]]
173173
context_line = source[lineno].strip("\r\n")
174174
post_context = [
175-
line.strip("\r\n")
176-
for line
177-
in source[(lineno + 1):upper_bound]
175+
line.strip("\r\n") for line in source[(lineno + 1) : upper_bound]
178176
]
179177
except IndexError:
180178
# the file may have changed since it was loaded into memory

0 commit comments

Comments
 (0)