fix: update target version for Ruff and regex pattern in update_version script
This commit is contained in:
parent
be9d64f3ed
commit
c834d9c481
2 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue