github jorisroovers/gitlint v0.18.0
0.18.0

latest releases: test, v0.19.1, v0.20.0dev...
24 months ago

Contributors:
Special thanks to all contributors for this release - details inline!

  • Python 3.11 support
  • Last release to support Python 3.6 (EOL since 2021-12-23)
  • Behavior Change: In a future release, gitlint will be switching to use re.search instead of re.match semantics for all rules. Your rule regexes might need updating as a result, gitlint will print a warning if so. More details are in the docs. (#254)
  • gitlint no longer uses the sh library by default in an attempt to reduce external dependencies. In case of issues, the use of sh can be re-enabled by setting the env var GITLINT_USE_SH_LIB=1. This fallback will be removed entirely in a future gitlint release. (#351)
  • --commits now also accepts a comma-separated list of commit hashes, making it possible to lint a list of non-contiguous commits without invoking gitlint multiple times (#283)
  • Improved handling of branches that have no commits (#188) - thanks domsekotill
  • Support for GITLINT_CONFIG env variable (#189) - thanks Notgnoshi
  • Added a new gitlint-ci pre-commit hook, making it easier to run gitlint through pre-commit in CI (#191) - thanks guillaumelambert
  • Contrib Rules:
  • User Defined rules:
    • Gitlint now recognizes fixup=amend commits (see related git documentation), available as commit.is_fixup_amend_commit=True
    • Gitlint now parses diff stat information, available in commit.changed_files_stats (#314)
  • Bugfixes:
  • Under-the-hood:
    • Dependencies updated
    • Moved to black for formatting
    • Fixed nasty CI issue (#298)
    • Unit tests fix (#256) - thanks carlsmedstad
    • Vagrant box removed in favor of github dev containers (#348)
    • Removed a few lingering references to the master branch in favor of main
    • Moved roadmap and project planning to github projects
    • Thanks to sigmavirus24 for continued overall help and support

Don't miss a new gitlint release

NewReleases is sending notifications on new releases.