From 0b654c7434703ee2726153a325a42ff81a22a783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 21 Jul 2023 14:01:56 +0200 Subject: [PATCH] apply treefmt --- flake.nix | 2 +- pkgs/clan-cli/tests/test_cli.py | 7 +++++-- templates/python-project/tests/test_cli.py | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 3f0d8621..888582ad 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ }; outputs = inputs @ { flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } ({ lib, config, ... }: { + flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: { systems = [ "x86_64-linux" "aarch64-linux" diff --git a/pkgs/clan-cli/tests/test_cli.py b/pkgs/clan-cli/tests/test_cli.py index 4d6a4404..2028602a 100644 --- a/pkgs/clan-cli/tests/test_cli.py +++ b/pkgs/clan-cli/tests/test_cli.py @@ -1,10 +1,13 @@ import sys -import clan_cli import pytest +import clan_cli -def test_no_args(capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None: + +def test_no_args( + capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch +) -> None: monkeypatch.setattr(sys, "argv", [""]) clan_cli.main() captured = capsys.readouterr() diff --git a/templates/python-project/tests/test_cli.py b/templates/python-project/tests/test_cli.py index 8855774a..6c6f124c 100644 --- a/templates/python-project/tests/test_cli.py +++ b/templates/python-project/tests/test_cli.py @@ -11,7 +11,9 @@ def test_no_args(capsys: pytest.CaptureFixture) -> None: assert captured.out.startswith("usage:") -def test_version(capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None: +def test_version( + capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch +) -> None: monkeypatch.setattr(sys, "argv", ["", "--version"]) my_tool.my_cli() captured = capsys.readouterr()