Skip to content

Commit 8c36e63

Browse files
committed
project:fix
1 parent 6391a6d commit 8c36e63

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

exasol/toolbox/metrics.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime
22
import json
33
import re
4+
import subprocess
45
import sys
56
from collections import defaultdict
67
from dataclasses import (
@@ -14,7 +15,6 @@
1415
from functools import singledispatch
1516
from inspect import cleandoc
1617
from pathlib import Path
17-
import subprocess
1818
from tempfile import TemporaryDirectory
1919
from typing import (
2020
Any,
@@ -100,6 +100,7 @@ class Report:
100100
security: Rating
101101
technical_debt: Rating
102102

103+
103104
def total_coverage(file: Union[str, Path]) -> float:
104105
with TemporaryDirectory() as tmpdir:
105106
tmp_dir = Path(tmpdir)
@@ -113,11 +114,11 @@ def total_coverage(file: Union[str, Path]) -> float:
113114
stdout = p.stdout.strip()
114115
if (p.returncode == 1) and (stdout == "No data to report."):
115116
print(
116-
f'The following command'
117-
f' returned non-zero exit status {p.returncode}:\n'
117+
f"The following command"
118+
f" returned non-zero exit status {p.returncode}:\n"
118119
f' {" ".join(p.args)}\n'
119-
f'{stdout}\n'
120-
'Returning total coverage 100 %.',
120+
f"{stdout}\n"
121+
"Returning total coverage 100 %.",
121122
file=sys.stderr,
122123
)
123124
return 100.0

0 commit comments

Comments
 (0)