Skip to content

Commit

Permalink
Update Ruff target-version to 3.9 (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen authored Oct 28, 2024
1 parent a130827 commit 81e2067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import List

import nox
from nox import parametrize
Expand Down Expand Up @@ -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)


Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 81e2067

Please sign in to comment.