Skip to content

Provide an imperative mood check #256

Closed

Description

@choeger

What's the problem this feature will solve?

Git commit message titles should be written in imperative mood. (Citation needed)

Describe the solution you'd like

There is a check like this over here, with a relatively heavyweight dependency:

https://github.com/dimaka-wix/commit-msg-hook/blob/59a706687cc53c526f25b5557b1144ba7e91cf23/src/main/cli.py#L223

seems easy enough to implement, but the dependency is heavy.

Rust has https://crates.io/crates/imperative - this has been migrated from here:

https://github.com/PyCQA/pydocstyle/blob/8d0cdfc93e86e096bb5753f07dc5c7c373e63837/src/pydocstyle/checker.py#L530

This does not come with a dependency but with a wordlist, e.g.,

https://github.com/crate-ci/imperative/blob/master/assets/imperatives.txt

I think that using a wordlist fits the style of this tool better.

Additional context

No response

Activity

  1. added
    enhancement
    on Jul 10, 2025
  2. shenxianpeng commented on Jul 12, 2025

    @shenxianpeng
    Member

    Thanks for the suggesssion. This feature has been added in the v0.10.0 release. If you have any issues or other suggestions, feel free to reach out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions