Skip to content

Commit 4655c0a

Browse files
committed
Update step 7
1 parent 826e9bb commit 4655c0a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

gendiff/formaters/stylish.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def format_value(value, depth):
1515
if value is None:
1616
return "null"
1717

18-
return value
18+
return f" {value}"
1919

2020

2121
def format_stylish(diff, depth=0):
@@ -39,7 +39,7 @@ def format_stylish(diff, depth=0):
3939
elif status == "modified":
4040
lines.append(
4141
f"{indent} - {key}:"
42-
f" {format_value(info['old_value'], depth + 1)}"
42+
f"{format_value(info['old_value'], depth + 1)}"
4343
)
4444
lines.append(
4545
f"{indent} + {key}:"

gendiff/tests/diff_generator_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
setting6: {
1818
doge: {
19-
- wow:
19+
- wow:
2020
+ wow: so much
2121
}
2222
key: value

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude = .git,__pycache__,.venv,dist,build
1111
ignore =
1212
# line break occurred before a binary operator
1313
W503
14+
W291
1415

1516
per-file-ignores =
1617
# init modules can contain the local imports, logic, unused imports

0 commit comments

Comments
 (0)