diff --git a/.editorconfig b/.editorconfig index 7d07822..edf4f36 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,6 @@ insert_final_newline = true indent_size = 2 indent_style = space trim_trailing_whitespace = true + +[*.py] +indent_size = 4 diff --git a/spacemk/exporters/base.py b/spacemk/exporters/base.py index cc10cee..6cad658 100644 --- a/spacemk/exporters/base.py +++ b/spacemk/exporters/base.py @@ -163,11 +163,11 @@ def _save_report_to_file(self, data: dict) -> None: column = 0 for key, value in sorted(pivoted_entity_type_data.items()): # Skip data structures - if type(value) in [dict, list, tuple, set]: + if type(value) in [dict, tuple, set]: continue worksheet.write(0, column, key) - worksheet.write_column(1, column, value) + worksheet.write_column(1, column, value if isinstance(value, list) else [value]) column += 1 workbook.close()