Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Oct 23, 2024
1 parent 84d171b commit 7546b11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:

# black -- more info: https://github.com/psf/black/blob/main/docs/integrations/source_version_control.md
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
args: [--line-length=120]
Expand Down
18 changes: 9 additions & 9 deletions discopop_explorer/utilities/statistics/output_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,23 @@ def output_suggestion_statistics(
for suggestion_id in suggestion_summed_cyclomatic_complexity_from_calls:
if suggestion_id not in statistics_dict_by_suggestionID:
statistics_dict_by_suggestionID[suggestion_id] = dict()
statistics_dict_by_suggestionID[suggestion_id][
"suggestion_summed_cyclomatic_complexity_from_calls"
] = suggestion_summed_cyclomatic_complexity_from_calls[suggestion_id]
statistics_dict_by_suggestionID[suggestion_id]["suggestion_summed_cyclomatic_complexity_from_calls"] = (
suggestion_summed_cyclomatic_complexity_from_calls[suggestion_id]
)

for suggestion_id in suggestion_immediate_lines_of_code:
if suggestion_id not in statistics_dict_by_suggestionID:
statistics_dict_by_suggestionID[suggestion_id] = dict()
statistics_dict_by_suggestionID[suggestion_id][
"suggestion_immediate_lines_of_code"
] = suggestion_immediate_lines_of_code[suggestion_id]
statistics_dict_by_suggestionID[suggestion_id]["suggestion_immediate_lines_of_code"] = (
suggestion_immediate_lines_of_code[suggestion_id]
)

for suggestion_id in suggestion_lines_of_code_including_calls:
if suggestion_id not in statistics_dict_by_suggestionID:
statistics_dict_by_suggestionID[suggestion_id] = dict()
statistics_dict_by_suggestionID[suggestion_id][
"suggestion_lines_of_code_including_calls"
] = suggestion_lines_of_code_including_calls[suggestion_id]
statistics_dict_by_suggestionID[suggestion_id]["suggestion_lines_of_code_including_calls"] = (
suggestion_lines_of_code_including_calls[suggestion_id]
)

with open(statistics_file_by_suggestionID, "w+") as f:
f.write(json.dumps(statistics_dict_by_suggestionID) + "\n")
Expand Down

0 comments on commit 7546b11

Please sign in to comment.