From 8f23688c1d195e2558560d99616a51b477095f3f Mon Sep 17 00:00:00 2001 From: johnthagen Date: Mon, 28 Oct 2024 09:19:48 -0400 Subject: [PATCH 1/2] Update Ruff target-version to 3.9 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a5c4737..2f6abec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,7 +81,8 @@ enable_error_code = ["explicit-override"] [tool.ruff] line-length = 99 -target-version = "py38" +# TODO: Remove this when migrating to [project] requires-python field. +target-version = "py39" src = ["src"] # Ruff will automatically exclude all files listed in .gitignore as well as common temporary Python # tool directories. From c3a4db8d1c9159b2f8f8bdfce18b3d657071f50a Mon Sep 17 00:00:00 2001 From: johnthagen Date: Mon, 28 Oct 2024 09:24:35 -0400 Subject: [PATCH 2/2] Fix Ruff lint error --- noxfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index e5caacc..e313110 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 @@ -42,7 +41,7 @@ def fmt(s: Session) -> None: ["ruff", "format", "--check", "."], ], ) -def lint(s: Session, command: List[str]) -> None: +def lint(s: Session, command: list[str]) -> None: s.run(*command)