From cfcec4596ec0eee969db8de8d88ab906a9bb390b Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Sat, 16 May 2026 12:45:27 -0700 Subject: [PATCH] style: ruff format test_git_gate.py --- src/aipass/devpulse/tests/test_git_gate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/aipass/devpulse/tests/test_git_gate.py b/src/aipass/devpulse/tests/test_git_gate.py index 8e1c6ca2..ab69bd17 100644 --- a/src/aipass/devpulse/tests/test_git_gate.py +++ b/src/aipass/devpulse/tests/test_git_gate.py @@ -353,11 +353,11 @@ class TestBypassDetection: @pytest.mark.parametrize( "cmd", [ - f'{_PY3} -c "import subprocess; subprocess.run([\'git\',\'commit\'])"', - f'{_PY3} -c "import os; os.system(\'git push\')"', - f'{_PY3} -c "from subprocess import Popen; Popen([\'gh\',\'pr\',\'create\'])"', - f'{_PY3} -c "from os import popen; popen(\'git merge\')"', - f'{_PY3} -c "from os import system; system(\'git push\')"', + f"{_PY3} -c \"import subprocess; subprocess.run(['git','commit'])\"", + f"{_PY3} -c \"import os; os.system('git push')\"", + f"{_PY3} -c \"from subprocess import Popen; Popen(['gh','pr','create'])\"", + f"{_PY3} -c \"from os import popen; popen('git merge')\"", + f"{_PY3} -c \"from os import system; system('git push')\"", ], ) def test_blocks_subprocess_bypass(self, cmd): @@ -418,7 +418,7 @@ class TestBypassDetection: def test_allows_subprocess_no_git(self): """Subprocess calls without git/gh are allowed.""" - assert self._run(f'{_PY3} -c "import subprocess; subprocess.run([\'ls\'])"') == 0 + assert self._run(f"{_PY3} -c \"import subprocess; subprocess.run(['ls'])\"") == 0 def test_allows_read_only_full_path(self): """Read-only git via full path is allowed."""