Fix list literal spacing to use [ x, y ] style (#1044)

Enforce consistent space inside square brackets for all list literals
across source and test files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Henry Ruhs
2026-02-18 09:18:03 +01:00
committed by GitHub
parent 8801668562
commit c7976ec9d4
11 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ def before_all() -> None:
'https://github.com/facefusion/facefusion-assets/releases/download/examples-3.0.0/source.jpg',
'https://github.com/facefusion/facefusion-assets/releases/download/examples-3.0.0/target-240p.mp4'
])
subprocess.run(['ffmpeg', '-i', get_test_example_file('target-240p.mp4'), '-vframes', '1', get_test_example_file('target-240p.jpg')])
subprocess.run([ 'ffmpeg', '-i', get_test_example_file('target-240p.mp4'), '-vframes', '1', get_test_example_file('target-240p.jpg') ])
@pytest.fixture(scope = 'function', autouse = True)
+2 -2
View File
@@ -20,8 +20,8 @@ def test_create_float_range() -> None:
def test_calc_int_step() -> None:
assert calculate_int_step([0, 1]) == 1
assert calculate_int_step([ 0, 1 ]) == 1
def test_calc_float_step() -> None:
assert calculate_float_step([0.1, 0.2]) == 0.1
assert calculate_float_step([ 0.1, 0.2 ]) == 0.1
+1 -1
View File
@@ -3,6 +3,6 @@ from facefusion.sanitizer import sanitize_int_range
def test_sanitize_int_range() -> None:
assert sanitize_int_range(0, [ 0, 1, 2 ]) == 0
assert sanitize_int_range(2, [0, 1, 2]) == 2
assert sanitize_int_range(2, [ 0, 1, 2 ]) == 2
assert sanitize_int_range(-1, [ 0, 1 ]) == 0
assert sanitize_int_range(3, [ 0, 1 ]) == 0