Skip to content

Commit

Permalink
chore: Rename helpers directory to core
Browse files Browse the repository at this point in the history
  • Loading branch information
rushwerks committed Oct 10, 2024
1 parent 435319a commit a9b1774
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions feefifofum/helpers/table.py → feefifofum/core/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from feefifofum.helpers.constants import TABLE_LEFT_EDGE, TABLE_RIGHT_EDGE, TABLE_SEPARATOR, TABLE_SPACER
from feefifofum.core.constants import TABLE_LEFT_EDGE, TABLE_RIGHT_EDGE, TABLE_SEPARATOR, TABLE_SPACER


def identify_and_format_tables(file_lines: list[str]) -> list[str]:
Expand Down Expand Up @@ -92,5 +92,5 @@ def _add_table_to_mapping(table: list[str], start_index: int | None, table_mappi
:param start_index: Starting index of table
:param table_mapping: Mapping of table starting index to table content
"""
if table:
if table and start_index:
table_mapping[start_index] = table
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from feefifofum.helpers.constants import INDENT_SIZE, TABLE_SEPARATOR, WHITESPACE_CONFIG
from feefifofum.core.constants import INDENT_SIZE, TABLE_SEPARATOR, WHITESPACE_CONFIG


def strip_whitespace(file_lines: list[str]) -> list[str]:
Expand Down
4 changes: 2 additions & 2 deletions feefifofum/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from argparse import ArgumentParser
from pathlib import Path

from feefifofum.helpers.table import identify_and_format_tables
from feefifofum.helpers.whitespace import format_whitespace, strip_whitespace
from feefifofum.core.table import identify_and_format_tables
from feefifofum.core.whitespace import format_whitespace, strip_whitespace
from feefifofum.utils.file_utils import get_file_paths, read_file_lines, write_file_lines


Expand Down

0 comments on commit a9b1774

Please sign in to comment.