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 bump.py #708

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update bump.py #708

wants to merge 1 commit into from

Commits on Oct 15, 2024

  1. Update bump.py

    1. Logging: Replaced print statements with logging for better control over output.
    
    2. Error Handling: Added try-except blocks to handle potential errors during file reading, writing, and regex operations.
    
    3. Simplified Logic: Used a dictionary to map BumpType to the corresponding bump method, reducing repetitive code.
    
    4. Type Hints: Ensured all functions have type hints for better clarity and maintainability.
    
    5. These changes should make the script more robust and easier to maintain. Let me know if you need further modifications!
    smit23patel authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f505f28 View commit details
    Browse the repository at this point in the history