use ruff formatter (#10081)

Replaces black with ruff-formatter, and isort with ruff.
This commit is contained in:
skshetry
2023-11-09 20:58:58 +05:45
committed by GitHub
parent 06565e18b4
commit 4ee8f554a5
12 changed files with 24 additions and 42 deletions
+2 -6
View File
@@ -14,9 +14,7 @@ from pathlib import Path
with Path(sys.argv[1]).open("a+", encoding="utf-8") as f:
f.write("foo")
""".replace(
"\r\n", "\n"
),
""".replace("\r\n", "\n"),
)
@@ -34,7 +32,5 @@ import sys
for file in sys.argv[1:]:
with open(file) as f, open(file +"-1","w+") as w:
w.write(f.readline())
""".replace(
"\r\n", "\n"
),
""".replace("\r\n", "\n"),
)