Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
exclude: ^python/tests/__snapshots__/
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.8
rev: v0.17.1
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.12.17
rev: 0.13.1
hooks:
- id: uv-lock
4 changes: 2 additions & 2 deletions modify_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"""

import argparse
import datetime
import datetime as dt
import re
import sys
from pathlib import Path
Expand Down Expand Up @@ -77,7 +77,7 @@ def find_unreleased_section(lines):

def update_changelog_version(file_path: Path, new_version: str) -> None:
"""Update changelog for version bump - replaces UNRELEASED with versioned section."""
today = datetime.datetime.now(tz=datetime.UTC).strftime("%Y-%m-%d")
today = dt.datetime.now(tz=dt.UTC).strftime("%Y-%m-%d")
content = file_path.read_text()
new_section = f"## UNRELEASED\n\n## {new_version} ({today})"
content = content.replace("## UNRELEASED", new_section, 1)
Expand Down
Loading