Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ruff target-version to 3.9 #241

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -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)


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