Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: commit-check/commit-check
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.7.1
Choose a base ref
...
head repository: commit-check/commit-check
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.8.0
Choose a head ref
  • 2 commits
  • 18 files changed
  • 1 contributor

Commits on Jun 13, 2026

  1. feat: support custom regex via message_pattern config option (#427)

    * feat: support custom regex via message_pattern config option
    
    Add `message_pattern` to the `[commit]` config section — a custom
    regex that replaces the auto-generated Conventional Commits regex
    when set.  Only available via TOML and env var (CCHK_MESSAGE_PATTERN),
    not as a CLI flag, since regex belongs in config files not command
    lines.
    
    Closes #426
    
    * test: add coverage for CCHK_MESSAGE_PATTERN env var parsing
    
    * test: cover empty message/subject early-return paths in validators
    shenxianpeng authored Jun 13, 2026
    Configuration menu
    Copy the full SHA
    6fb72d3 View commit details
    Browse the repository at this point in the history
  2. chore: drop Python 3.9 support (#424)

    * chore: drop Python 3.9 support
    
    - Bump requires-python from >=3.9 to >=3.10
    - Remove Python 3.9 trove classifier
    - Remove Python 3.9 from CI install test matrix
    - Update contributing guide prerequisite to Python 3.10+
    
    Closes #423
    
    * chore: set mypy python_version to 3.10
    
    Match mypy's type-checking target to the new minimum supported
    Python version after dropping 3.9 support.
    
    * chore: modernize type annotations with PEP 604/585
    
    - Replace Optional[X] with X | None (PEP 604, native in 3.10)
    - Replace List[X], Dict[K,V], Tuple[...], Type[X] with
      list[X], dict[K,V], tuple[...], type[X] (PEP 585, native in 3.9)
    - Add from __future__ import annotations for forward-reference safety
    - Use collections.abc.Callable instead of typing.Callable
    - Keep typing.Any (no native replacement)
    
    All 217 tests pass.
    
    * chore: sync uv.lock with >=3.10 requires-python, tighten return types
    
    - Regenerate uv.lock (requires-python >=3.10, drop all <3.10 markers)
    - Restore tomli conditional marker (python_version < '3.11')
    - Add py.typed marker (PEP 561) for downstream type checkers
    - Tighten CheckOutcome.to_dict() return type to dict[str, str]
    - Tighten validate_config() return type to dict[str, Any]
    shenxianpeng authored Jun 13, 2026
    Configuration menu
    Copy the full SHA
    f02b845 View commit details
    Browse the repository at this point in the history
Loading