pypi bump-my-version 1.3.0

7 hours ago

Compare the full difference.

Fixes

  • Refactor hook script execution to handle platform-specific argument parsing; update typing imports. a46b63d

New

  • Add allow_shell_hooks option for safe hook execution; improve shell syntax handling. 036ee1a

    • Introduce allow_shell_hooks configuration to control shell metacharacters in hooks.
    • Change default behavior to disallow shell syntax (shell=False) unless explicitly enabled.
    • Add regex detection for shell syntax and migrate affected hooks.
    • Update tests and fixtures to cover new functionality.
    • Enhance documentation with migration guidance and best practices.

Other

  • Standardize formatting, spacing, and indentation across documentation and templates for consistency. 1b9eb42

  • Modularize CLI commands into individual files: bump, replace, show, show-bump, and sample-config; add corresponding tests and shared options file. c35c431

  • Make --regex option nullable; add tests for precedence between CLI flags and config. c78bbef

Updates

  • Update pre-commit, improve is_subpath logic, and enhance documentation. 919c66b

    • Update ruff-pre-commit to v0.15.1 in pre-commit config.
    • Refine is_subpath logic to handle edge cases and add path resolution.
    • Add security test cases for path traversal in test_is_subpath.
    • Extend AGENTS.md with pytest execution instructions.

Don't miss a new bump-my-version release

NewReleases is sending notifications on new releases.