Skip to content

Commit 78cd776

Browse files
authored
Revert typo (#470)
1 parent f2311dd commit 78cd776

File tree

5 files changed

+8
-27
lines changed

5 files changed

+8
-27
lines changed

opentelemetry-instrumentation/setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@
2424
with open(VERSION_FILENAME) as f:
2525
exec(f.read(), PACKAGE_INFO)
2626

27-
setuptools.setup(
28-
version=PACKAGE_INFO["__version__"],
29-
)
27+
setuptools.setup(version=PACKAGE_INFO["__version__"],)

opentelemetry-instrumentation/src/opentelemetry/instrumentation/propagators.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,5 @@ def inject(
122122
),
123123
)
124124
setter.set(
125-
carrier,
126-
_HTTP_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS,
127-
header_name,
125+
carrier, _HTTP_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS, header_name,
128126
)

opentelemetry-instrumentation/tests/test_bootstrap.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323

2424

2525
def sample_packages(packages, rate):
26-
sampled = sample(
27-
list(packages),
28-
int(len(packages) * rate),
29-
)
26+
sampled = sample(list(packages), int(len(packages) * rate),)
3027
return {k: v for k, v in packages.items() if k in sampled}
3128

3229

opentelemetry-instrumentation/tests/test_utils.py

+4-16
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,12 @@ def test_http_status_to_status_code(self):
3131
(HTTPStatus.UNAUTHORIZED, StatusCode.ERROR),
3232
(HTTPStatus.FORBIDDEN, StatusCode.ERROR),
3333
(HTTPStatus.NOT_FOUND, StatusCode.ERROR),
34-
(
35-
HTTPStatus.UNPROCESSABLE_ENTITY,
36-
StatusCode.ERROR,
37-
),
38-
(
39-
HTTPStatus.TOO_MANY_REQUESTS,
40-
StatusCode.ERROR,
41-
),
34+
(HTTPStatus.UNPROCESSABLE_ENTITY, StatusCode.ERROR,),
35+
(HTTPStatus.TOO_MANY_REQUESTS, StatusCode.ERROR,),
4236
(HTTPStatus.NOT_IMPLEMENTED, StatusCode.ERROR),
4337
(HTTPStatus.SERVICE_UNAVAILABLE, StatusCode.ERROR),
44-
(
45-
HTTPStatus.GATEWAY_TIMEOUT,
46-
StatusCode.ERROR,
47-
),
48-
(
49-
HTTPStatus.HTTP_VERSION_NOT_SUPPORTED,
50-
StatusCode.ERROR,
51-
),
38+
(HTTPStatus.GATEWAY_TIMEOUT, StatusCode.ERROR,),
39+
(HTTPStatus.HTTP_VERSION_NOT_SUPPORTED, StatusCode.ERROR,),
5240
(600, StatusCode.ERROR),
5341
(99, StatusCode.ERROR),
5442
):

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ commands_pre =
385385
python -m pip install -e {toxinidir}/propagator/opentelemetry-propagator-ot-trace[test]
386386

387387
commands =
388-
python scripts/eachdist.py lint
388+
python scripts/eachdist.py lint --check-only
389389

390390
[testenv:docker-tests]
391391
deps =

0 commit comments

Comments
 (0)