nix: migrate to 'ruff' formatting

Having just the one tool is better.

Incidentally, this fixes the ternary formatting, which was messed up in
recent `black` versions.
This commit is contained in:
Bruno BELANYI 2024-11-23 18:45:57 +00:00
parent 8618c81b2f
commit 120a42f1b0
7 changed files with 8 additions and 17 deletions

View file

@ -64,7 +64,9 @@ def solve(input: List[str]) -> int:
(
"v"
if Point(x, y) in map.south
else ">" if Point(x, y) in map.east else "."
else ">"
if Point(x, y) in map.east
else "."
)
for y in range(map.dimensions.y)
)