Skip to content

Commit 9656b53

Browse files
committed
Moved cli.short_name strings down in possible_config_filenames
1 parent c35a65f commit 9656b53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ def load(cli, caller_file):
3737
cli.project_root = path.join(path.dirname(caller_file),
3838
f"../../{ '' if 'src' in path.dirname(caller_file) else '../../' }")
3939
possile_config_filenames = [
40-
f'.{cli.short_name}.config.jsonc', f'{cli.short_name}.config.json',
41-
f'.{cli.short_name}.config.json', f'{cli.short_name}.config.json',
42-
f'.{cli.short_name}.config.json5', f'{cli.short_name}.config.json',
4340
f'.{cli.name}.config.jsonc', f'{cli.name}.config.jsonc',
4441
f'.{cli.name}.config.json', f'{cli.name}.config.json',
4542
f'.{cli.name}.config.json5', f'{cli.name}.config.json5',
43+
f'.{cli.short_name}.config.jsonc', f'{cli.short_name}.config.json',
44+
f'.{cli.short_name}.config.json', f'{cli.short_name}.config.json',
45+
f'.{cli.short_name}.config.json5', f'{cli.short_name}.config.json',
4646
]
4747
for filename in possile_config_filenames:
4848
cli.config_filepath = path.join(cli.project_root, filename)

0 commit comments

Comments
 (0)