Skip to content

Commit 7d3c01e

Browse files
committed
Split line up
1 parent 4de657c commit 7d3c01e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def load(cli, caller_file):
3535
# Load from config file
3636
cli.config = sn()
3737
caller_path = Path(caller_file)
38-
cli.project_root = str(caller_path.parent.parent.parent if 'src' in str(caller_path) else caller_path.parent.parent)
38+
cli.project_root = str(caller_path.parent.parent.parent if 'src' in str(caller_path)
39+
else caller_path.parent.parent)
3940
possible_config_filenames = [
4041
f'{prefix}{name}.config.json{suffix}'
4142
for prefix in ['.', ''] for name in [cli.short_name, cli.name] for suffix in ['5', '', 'c']

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def load(cli, caller_file):
4747
# Load from config file
4848
cli.config = sn()
4949
caller_path = Path(caller_file)
50-
cli.project_root = str(caller_path.parent.parent.parent if 'src' in str(caller_path) else caller_path.parent.parent)
50+
cli.project_root = str(caller_path.parent.parent.parent if 'src' in str(caller_path)
51+
else caller_path.parent.parent)
5152
possible_config_filenames = [
5253
f'{prefix}{name}.config.json{suffix}'
5354
for prefix in ['.', ''] for name in [cli.short_name, cli.name] for suffix in ['5', '', 'c']

0 commit comments

Comments
 (0)