Skip to content

Commit be8bc53

Browse files
committed
Improved code style
1 parent 5290d21 commit be8bc53

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

swift_code_metrics/_graphs_renderer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
from ._metrics import Framework, Metrics, SubModule
2-
from ._report import Report, ReportingHelpers
1+
from ._metrics import Metrics, SubModule
2+
from ._report import ReportingHelpers
33
from dataclasses import dataclass
44
from typing import List
55
from ._graphs_presenter import GraphPresenter
66

77

88
@dataclass
99
class GraphsRender:
10-
"""
11-
Component responsible to generate the needed graphs for the given report.
12-
"""
10+
"Component responsible to generate the needed graphs for the given report."
1311
artifacts_path: str
1412
test_frameworks: List['Framework']
1513
non_test_frameworks: List['Framework']

swift_code_metrics/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
import logging
33
import json
4-
from typing import List,Dict
4+
from typing import Dict
55
from functional import seq
66

77

swift_code_metrics/tests/test_metrics.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,11 @@ def test_next_only_module(self):
390390

391391
def test_next_closed_circle(self):
392392
self.submodule.submodules.append(self.additional_module)
393-
"""
394-
*
395-
/ \
396-
H AM
397-
\
398-
AS
399-
"""
393+
# *
394+
# / \
395+
# H AM
396+
# \
397+
# AS
400398
self.assertEqual(self.helper, self.submodule.next)
401399
self.assertEqual(self.additional_module, self.helper.next)
402400
self.assertEqual(self.additional_submodule, self.additional_module.next)

0 commit comments

Comments
 (0)