enable more linting

This commit is contained in:
Jörg Thalheim
2023-11-29 12:38:00 +01:00
committed by Mic92
parent 6991b325d7
commit 7d755beca6
15 changed files with 54 additions and 54 deletions

View File

@@ -11,7 +11,7 @@ log = logging.getLogger(__name__)
class Cli:
def run(self, args: list[str]) -> argparse.Namespace:
parser = create_parser(prog="clan")
cmd = shlex.join(["clan"] + args)
cmd = shlex.join(["clan", *args])
log.debug(f"$ {cmd}")
log.debug(f"Caller {get_caller()}")
parsed = parser.parse_args(args)

View File

@@ -47,8 +47,8 @@ def test_set_some_option(
example_options,
"--settings-file",
out_file.name,
*args,
]
+ args
)
json_out = json.loads(open(out_file.name).read())
assert json_out == expected

View File

@@ -15,7 +15,7 @@ def test_flake_history_append(
api: TestClient, test_flake: FlakeForTest, temporary_home: Path
) -> None:
response = api.post(
f"/api/flake/history?flake_dir={str(test_flake.path)}",
f"/api/flake/history?flake_dir={test_flake.path!s}",
json={},
)
assert response.status_code == 200, response.json()
@@ -34,7 +34,7 @@ def test_flake_history_list(
# add the test_flake
response = api.post(
f"/api/flake/history?flake_dir={str(test_flake.path)}",
f"/api/flake/history?flake_dir={test_flake.path!s}",
json={},
)
assert response.status_code == 200, response.text