Skip to content

Commit a019f06

Browse files
committed
style: fix error [E303] - Too many blank lines (2).
Used Ruff (vscode and pre-commit) to: - Black-compatible code formatting. - fix all auto-fixable violations. - isort-compatible import sorting. - flake8-simplify manual fixes. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent a18eb0e commit a019f06

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/apps/starlette_app/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
testenv["starlette_host"] = "127.0.0.1"
99
testenv["starlette_port"] = 10817
10-
testenv["starlette_server"] = "http://" + testenv["starlette_host"] + ":" + str(testenv["starlette_port"])
11-
10+
testenv["starlette_server"] = (
11+
"http://" + testenv["starlette_host"] + ":" + str(testenv["starlette_port"])
12+
)
1213

1314

1415
def launch_starlette():
@@ -17,7 +18,7 @@ def launch_starlette():
1718

1819
# Hack together a manual custom headers list; We'll use this in tests
1920
agent.options.extra_http_headers = [
20-
"X-Capture-This",
21+
"X-Capture-This",
2122
"X-Capture-That",
2223
]
2324

tests/autoprofile/samplers/test_cpu_sampler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def _resources(self) -> Generator[None, None, None]:
2424
# teardown
2525
self.profiler.destroy()
2626

27-
2827
def test_cpu_profile(self) -> None:
2928
if RuntimeInfo.OS_WIN:
3029
return
@@ -52,4 +51,4 @@ def cpu_work_main_thread() -> None:
5251

5352
profile = sampler.build_profile(2000, 120000).to_dict()
5453

55-
assert 'cpu_work_main_thread' in str(profile)
54+
assert "cpu_work_main_thread" in str(profile)

0 commit comments

Comments
 (0)