mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
use ruff formatter (#10081)
Replaces black with ruff-formatter, and isort with ruff.
This commit is contained in:
+2
-6
@@ -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"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user