style: Fix black formatting issues in bump_version.py
- Fix spacing and indentation to pass black formatter - Ensure code quality standards are met for CI workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -50,12 +50,12 @@ def update_config_file(new_version: str) -> None:
|
|||||||
|
|
||||||
# Update version using regex to preserve formatting
|
# Update version using regex to preserve formatting
|
||||||
version_pattern = r'(__version__\s*=\s*["\'])[\d\.]+(["\'])'
|
version_pattern = r'(__version__\s*=\s*["\'])[\d\.]+(["\'])'
|
||||||
content = re.sub(version_pattern, rf'\g<1>{new_version}\g<2>', content)
|
content = re.sub(version_pattern, rf"\g<1>{new_version}\g<2>", content)
|
||||||
|
|
||||||
# Update the __updated__ field with current date
|
# Update the __updated__ field with current date
|
||||||
current_date = datetime.now().strftime("%Y-%m-%d")
|
current_date = datetime.now().strftime("%Y-%m-%d")
|
||||||
updated_pattern = r'(__updated__\s*=\s*["\'])[\d\-]+(["\'])'
|
updated_pattern = r'(__updated__\s*=\s*["\'])[\d\-]+(["\'])'
|
||||||
content = re.sub(updated_pattern, rf'\g<1>{current_date}\g<2>', content)
|
content = re.sub(updated_pattern, rf"\g<1>{current_date}\g<2>", content)
|
||||||
|
|
||||||
# Write back the updated content
|
# Write back the updated content
|
||||||
config_path.write_text(content)
|
config_path.write_text(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user