mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use ruff
to enforce python code formatting (#37117)
Requires servo/servo#37045 for deps and config. Testing: No need for tests to test tests. Fixes: servo/servo#37041 --------- Signed-off-by: zefr0x <zer0-x.7ty50@aleeas.com>
This commit is contained in:
parent
41ecfb53a1
commit
c96de69e80
67 changed files with 3021 additions and 3085 deletions
|
@ -12,13 +12,13 @@ Created on Mon Mar 26 20:08:25 2018
|
|||
@author: Pranshu Sinha, Abhay Soni, Aayushi Agrawal
|
||||
The script is intended to start servo on localhost:7002
|
||||
"""
|
||||
|
||||
import subprocess
|
||||
|
||||
|
||||
def start_servo(port, resolution):
|
||||
|
||||
# Use the below command if you are running this script on windows
|
||||
# cmds = 'mach.bat run --webdriver ' + port + ' --window-size ' + resolution
|
||||
cmds = './mach run --webdriver=' + port + ' --window-size ' + resolution
|
||||
cmds = "./mach run --webdriver=" + port + " --window-size " + resolution
|
||||
process = subprocess.Popen(cmds, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
return process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue