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:
parent
8618c81b2f
commit
120a42f1b0
7 changed files with 8 additions and 17 deletions
|
|
@ -8,7 +8,6 @@ FileSystem = dict[str, Union[int, "FileSystem"]]
|
|||
|
||||
def solve(input: list[str]) -> int:
|
||||
def build_tree(input: list[str], i: int = 0) -> tuple[FileSystem, int]:
|
||||
|
||||
fs: FileSystem = {}
|
||||
|
||||
while i < len(input):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ FileSystem = dict[str, Union[int, "FileSystem"]]
|
|||
|
||||
def solve(input: list[str]) -> int:
|
||||
def build_tree(input: list[str], i: int = 0) -> tuple[FileSystem, int]:
|
||||
|
||||
fs: FileSystem = {}
|
||||
|
||||
while i < len(input):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue