Skip to content

Commit a698fc1

Browse files
committed
resolve flake8 and black issues
1 parent 1c03db6 commit a698fc1

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

ddtrace/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import pkg_resources
44

5-
from .monkey import patch, patch_all
6-
from .pin import Pin
7-
from .span import Span
8-
from .tracer import Tracer
9-
from .settings import config
5+
from .monkey import patch, patch_all # noqa: E402
6+
from .pin import Pin # noqa: E402
7+
from .span import Span # noqa: E402
8+
from .tracer import Tracer # noqa: E402
9+
from .settings import config # noqa: E402
1010

1111

1212
try:

ddtrace/opentracer/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, service_name=None, config=None, scope_manager=None, dd_tracer
6868
invalid_keys = config_invalid_keys(self._config)
6969
if invalid_keys:
7070
str_invalid_keys = ','.join(invalid_keys)
71-
raise ConfigException('invalid key(s) given (%s)'.format(str_invalid_keys))
71+
raise ConfigException('invalid key(s) given ({})'.format(str_invalid_keys))
7272

7373
if not self._service_name:
7474
raise ConfigException(""" Cannot detect the \'service_name\'.

ddtrace/span.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def pprint(self):
373373
]
374374

375375
lines.extend((' ', '%s:%s' % kv) for kv in sorted(self.meta.items()))
376-
return '\n'.join('%10s %s' % l for l in lines)
376+
return '\n'.join('%10s %s' % line for line in lines)
377377

378378
@property
379379
def context(self):

tests/contrib/asyncio/test_tracer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ def test_trace_multiple_coroutines_ot_inner(self):
370370
# if multiple coroutines have nested tracing, they must belong
371371
# to the same trace
372372
ot_tracer = init_tracer('asyncio_svc', self.tracer)
373+
373374
@asyncio.coroutine
374375
def coro():
375376
# another traced coroutine

tests/internal/runtime/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ def cgroup_line_valid_test_cases():
5050

5151
valid_test_cases = dict(
5252
(
53-
':'.join([id, ','.join(groups), path.format(container_id, pod_id)]),
53+
':'.join([id_, ','.join(groups), path.format(container_id, pod_id)]),
5454
CGroupInfo(
55-
id=id,
55+
id=id_,
5656
groups=','.join(groups),
5757
path=path.format(container_id, pod_id),
5858
controllers=groups,
5959
container_id=container_id if '{0}' in path else None,
6060
pod_id=pod_id if '{1}' in path else None,
6161
)
6262
)
63-
for path, id, groups, container_id, pod_id
63+
for path, id_, groups, container_id, pod_id
6464
in itertools.product(paths, ids, controllers, container_ids, pod_ids)
6565
)
6666
# Dedupe test cases

0 commit comments

Comments
 (0)