Skip to content

Commit

Permalink
#4326 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sambodeme committed Oct 7, 2024
1 parent 3a90a40 commit 11dda57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@

from openpyxl import load_workbook
from audit.intakelib.intermediate_representation import extract_workbook_as_ir
from census_historical_migration.workbooklib.excel_creation_utils import (
get_audit_header,
)
from census_historical_migration.sac_general_lib.utils import (
normalize_year_string_or_exit,
)
from census_historical_migration.workbooklib.workbook_builder import (
generate_workbook,
)
from census_historical_migration.workbooklib.workbook_section_handlers import (
sections_to_handlers,
)
from django.core.management.base import BaseCommand

import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def handle(self, *args, **options): # noqa: C901
wb_path = os.path.join(out_dir, f"{filename}.json")

# Save the workbook to a temporary file to ensure formulas are evaluated
with tempfile.NamedTemporaryFile(suffix=".xlsx", delete=False) as tmp_file:
with tempfile.NamedTemporaryFile(
suffix=".xlsx", delete=False
) as tmp_file:
tmp_path = tmp_file.name
wb.save(tmp_path)
try:
Expand Down

0 comments on commit 11dda57

Please sign in to comment.