Skip to content

Commit f7fefda

Browse files
committed
Corrected var name to possible_config_filenames
1 parent 9656b53 commit f7fefda

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

remove-json-keys/src/remove_json_keys/lib/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def load(cli, caller_file):
3636
cli.config = sn()
3737
cli.project_root = path.join(path.dirname(caller_file),
3838
f"../../{ '' if 'src' in path.dirname(caller_file) else '../../' }")
39-
possile_config_filenames = [
39+
possible_config_filenames = [
4040
f'.{cli.name}.config.jsonc', f'{cli.name}.config.jsonc',
4141
f'.{cli.name}.config.json', f'{cli.name}.config.json',
4242
f'.{cli.name}.config.json5', f'{cli.name}.config.json5',
4343
f'.{cli.short_name}.config.jsonc', f'{cli.short_name}.config.json',
4444
f'.{cli.short_name}.config.json', f'{cli.short_name}.config.json',
4545
f'.{cli.short_name}.config.json5', f'{cli.short_name}.config.json',
4646
]
47-
for filename in possile_config_filenames:
47+
for filename in possible_config_filenames:
4848
cli.config_filepath = path.join(cli.project_root, filename)
4949
if path.exists(cli.config_filepath):
5050
cli.config = data.sns.from_dict(data.json.read(cli.config_filepath))

translate-messages/src/translate_messages/lib/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ def load(cli, caller_file):
4848
cli.config = sn()
4949
cli.project_root = path.join(path.dirname(caller_file),
5050
f"../../{ '' if 'src' in path.dirname(caller_file) else '../../' }")
51-
possile_config_filenames = [
51+
possible_config_filenames = [
5252
f'.{cli.short_name}.config.jsonc', f'{cli.short_name}.config.jsonc',
5353
f'.{cli.short_name}.config.json', f'{cli.short_name}.config.json',
5454
f'.{cli.short_name}.config.json5', f'{cli.short_name}.config.json5',
5555
f'.{cli.name}.config.jsonc', f'{cli.name}.config.jsonc',
5656
f'.{cli.name}.config.json', f'{cli.name}.config.json',
5757
f'.{cli.name}.config.json5', f'{cli.name}.config.json5',
5858
]
59-
for filename in possile_config_filenames:
59+
for filename in possible_config_filenames:
6060
cli.config_filepath = path.join(cli.project_root, filename)
6161
if path.exists(cli.config_filepath):
6262
cli.config = data.sns.from_dict(data.json.read(cli.config_filepath))

0 commit comments

Comments
 (0)