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) 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.