mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-06 12:43:53 +02:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user