Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 1, 2024
1 parent 3b22380 commit 2c47768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core/create_spoken_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ def on_extensions(values):
)
update_regex()


abbreviations_list = {}


@track_csv_list("abbreviations.csv", headers=("Abbreviation", "Spoken Form"))
def on_abbreviations(values):
global abbreviations_list
abbreviations_list = values


REVERSE_PRONUNCIATION_MAP = {
**{str(value): key for key, value in digits_map.items()},
**{value: key for key, value in symbol_key_words.items()},
Expand Down
2 changes: 0 additions & 2 deletions test/test_create_spoken_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import core.abbreviate
import core.user_settings



# we need to replace the track_csv_list decorator for unit tests.
CallbackT = Callable[[dict[str, str]], None]
DecoratorT = Callable[[CallbackT], CallbackT]
Expand Down

0 comments on commit 2c47768

Please sign in to comment.