Skip to content

Commit

Permalink
fix formatting to comply
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sampliner committed Apr 1, 2024
1 parent b8ab026 commit 18b3b62
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nix_update/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def __post_init__(


def eval_expression(
escaped_import_path: str, attr: str, flake: bool, system: str | None, override_filename: str | None
escaped_import_path: str,
attr: str,
flake: bool,
system: str | None,
override_filename: str | None,
) -> str:
system = f'"{system}"' if system else "builtins.currentSystem"

Expand Down Expand Up @@ -184,7 +188,11 @@ def eval_expression(

def eval_attr(opts: Options) -> Package:
expr = eval_expression(
opts.escaped_import_path, opts.escaped_attribute, opts.flake, opts.system, opts.override_filename
opts.escaped_import_path,
opts.escaped_attribute,
opts.flake,
opts.system,
opts.override_filename,
)
cmd = [
"nix",
Expand Down

0 comments on commit 18b3b62

Please sign in to comment.