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 ofre.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 varGITLINT_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:
- New contrib-disallow-cleanup-commits rule (#312) - thanks matthiasbeyer
- New contrib-allowed-authors rule (#358) - thanks stauchert
- User Defined rules:
- Gitlint now recognizes
fixup=amend
commits (see related git documentation), available ascommit.is_fixup_amend_commit=True
- Gitlint now parses diff stat information, available in
commit.changed_files_stats
(#314)
- Gitlint now recognizes
- 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 ofmain
- Moved roadmap and project planning to github projects
- Thanks to sigmavirus24 for continued overall help and support