fix: update target version for Ruff and regex pattern in update_version script

This commit is contained in:
claudi 2026-03-30 08:45:02 +02:00
parent be9d64f3ed
commit c834d9c481
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ packages = ["agravity_client"]
# Ruff # Ruff
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
[tool.ruff] [tool.ruff]
target-version = "0.2.0" target-version = "3.10"
line-length = 100 line-length = 100
[tool.ruff.lint] [tool.ruff.lint]

View file

@ -89,7 +89,7 @@ def main() -> int:
# Update pyproject.toml # Update pyproject.toml
if pyproject_path.exists(): if pyproject_path.exists():
pattern = r'(?<!python_)version = "[^"]+"' pattern = r'(?<![-\w])version = "[^"]+"'
success &= update_file( success &= update_file(
pyproject_path, pyproject_path,
pattern, pattern,