From 2fb1e56d1a0a661f6dc16e0120640328f88b8e08 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Mon, 11 Dec 2023 10:05:33 -0500 Subject: [PATCH] Fix command parameter name --- noxfile.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 7b6602d..50634fc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,5 @@ from pathlib import Path from tempfile import NamedTemporaryFile -from typing import List import nox from nox import parametrize @@ -36,14 +35,14 @@ def fmt(s: Session) -> None: @session(venv_backend="none") @parametrize( - "commands", + "command", [ ["ruff", "check", "."], ["ruff", "format", "--check", "."], ], ) -def lint(s: Session, commands: List[str]) -> None: - s.run(*commands) +def lint(s: Session, command) -> None: + s.run(*command) @session(venv_backend="none")