Skip to content

Commit 081bab7

Browse files
authored
Replaced black with ruff (#113)
1 parent cca8bad commit 081bab7

File tree

4 files changed

+31
-47
lines changed

4 files changed

+31
-47
lines changed

challenges/extreme-constructor/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
def constructor_parameter(
16-
cls: Callable[P, T]
16+
cls: Callable[P, T],
1717
) -> Callable[[Callable[[T], R]], Callable[P, R]]:
1818
...
1919

challenges/extreme-self-casting/solution2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import Callable, Concatenate, Any
1414

1515

16-
class Fn[R, **P]():
16+
class Fn[R, **P]:
1717
def __init__(self, f: Callable[P, R]) -> None:
1818
self.f = f
1919

pdm.lock

Lines changed: 26 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ plugins = ["pdm-autoexport"]
2222
[tool.pdm.scripts]
2323
dev = "flask --app app run --debug"
2424
test = "pytest -n auto"
25-
run_black = "black ."
25+
run_ruff = "ruff format"
2626
djhtml.cmd = "djhtml --tabwidth 2 templates"
2727
djhtml.env = {PYTHONUTF8 = "1"}
28-
format = {composite = ["run_black", "djhtml"]}
28+
format = {composite = ["run_ruff", "djhtml"]}
2929

3030
[tool.pdm.dev-dependencies]
3131
dev = [
3232
"pytest>=7.4.3",
3333
"djhtml>=3.0.6",
3434
"pre-commit>=3.5.0",
3535
"pytest-xdist>=3.3.1",
36-
"black<24.1.0",
36+
"ruff>=0.1.14",
3737
]
3838

3939
[[tool.pdm.autoexport]]

0 commit comments

Comments
 (0)