mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -21,7 +21,7 @@
|
|||
import sys
|
||||
import json
|
||||
|
||||
full_search = len(sys.argv) > 3 and sys.argv[3] == '--full'
|
||||
full_search = len(sys.argv) > 3 and sys.argv[3] == "--full"
|
||||
|
||||
with open(sys.argv[1]) as f:
|
||||
data = f.readlines()
|
||||
|
@ -34,13 +34,9 @@ with open(sys.argv[1]) as f:
|
|||
if "action" in entry and entry["action"] == "test_end":
|
||||
thread = None
|
||||
else:
|
||||
if ("action" in entry
|
||||
and entry["action"] == "test_start"
|
||||
and entry["test"] == sys.argv[2]):
|
||||
if "action" in entry and entry["action"] == "test_start" and entry["test"] == sys.argv[2]:
|
||||
thread = entry["thread"]
|
||||
print(json.dumps(entry))
|
||||
elif (full_search
|
||||
and "command" in entry
|
||||
and sys.argv[2] in entry["command"]):
|
||||
elif full_search and "command" in entry and sys.argv[2] in entry["command"]:
|
||||
thread = entry["thread"]
|
||||
print(json.dumps(entry))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue