This is not a bug in gitlint itself, but a problem caused by interaction with pre-commit: running pre-commit autoupdate updates gitlint hook in .pre-commit-config.yaml to v0.19.0dev. This is not good unless v0.19.0dev is more recommended than v0.18.0.
Note that pre-commit document says:
You can update your hooks to the latest version automatically by running pre-commit autoupdate. By default, this will bring the hooks to the latest tag on the default branch.