keepmeachangelog
Linter for changelogs following Keep a Changelog 1.1.0.
To use it in GitHub Actions, see keepmeachangelog-action, which reads a changelog entry and validates it with this linter.
pre-commit
repos:
- repo: https://github.com/dcotecnologia/keepmeachangelog-lint
rev: v0.2.0
hooks:
- id: keepmeachangelog-lint
args: [--fix]
Pointing at a specific file
By default the hook runs on files named CHANGELOG / CHANGELOG.md (any directory).
To lint a differently named or located file, override files in your config:
- id: keepmeachangelog-lint
files: ^docs/HISTORY\.md$
To lint a file even when it is not staged, add always_run: true and pass_filenames: false
with the path as an argument:
- id: keepmeachangelog-lint
args: [docs/HISTORY.md]
pass_filenames: false
always_run: true
Or run directly: keepmeachangelog CHANGELOG.md.
Node projects (package.json)
The linter only reads the changelog, so it works in any project; pre-commit builds its own
Python environment for the hook, so the Node project needs no Python setup.
Use --version-from package.json to require an entry for the version in package.json:
repos:
- repo: https://github.com/dcotecnologia/keepmeachangelog-lint
rev: v0.2.0
hooks:
- id: keepmeachangelog-lint
args: [--version-from, package.json]
Without pre-commit: uvx keepmeachangelog --version-from package.json CHANGELOG.md.
Config
--config path/to/file.toml (keys at top level, or under [tool.keepmeachangelog]
so you can point at a pyproject.toml):
title = "Changelog" # expected "# <title>"
sections = ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"]
require-links = true # each version needs a "[x.y.z]: url"
allow-empty-sections = false
validation-depth = 10 # optional: only the latest N released versions (Unreleased not counted); omit = all
version = "1.4.0" # optional: the changelog must have an entry for it
version-from = "pyproject.toml" # optional: same, read from [project].version (or "package.json" -> version)
repo-url = "https://github.com/o/r" # optional: enables generating/fixing version links
tag-prefix = "v"
--validation-depth N, --version X and --version-from pyproject.toml on the command line override the file.
In pre-commit: args: [--config, .changelog-lint.toml].
Rules
# Changelogtitle- Version headings
## [x.y.z] - YYYY-MM-DD(SemVer, valid ISO date, optional[YANKED]) or## [Unreleased](first, no date) - Latest version first (by version and date); no duplicate versions
- Sections only
Added,Changed,Deprecated,Removed,Fixed,Security; no duplicates, none empty - Each version has a link reference
[x.y.z]: <url>
Same checks as mindsers/changelog-reader-action
So the pre-commit hook fails on whatever would fail the release workflow:
- every released version is a valid SemVer; versions are in strictly increasing order (latest first)
- a section must have listed items (
Unreleasedis exempt) - sections allowed by release type, comparing each version with the previous one:
patch:
Fixed,Security; minor: alsoAdded,Changed,Deprecated; major/other: alsoRemoved validation-depthcounts the newest N released versions (Unreleased excluded); the oldest one in the window is not compared with a predecessor--version-from pyproject.tomlfails if the changelog has no entry for the project version (the action's "No log entry found for version X")
Not covered: version_scheme: pep440. Note the action only validates when validation_level is warn or error (default error).
License
Metadata
Release files for keepmeachangelog 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keepmeachangelog-0.2.0.tar.gz | 33.8 kB | With provenance | Details for keepmeachangelog-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keepmeachangelog-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for keepmeachangelog-0.2.0-py3-none-any.whl |
Total release size: 44.5 kB
Release files / keepmeachangelog-0.2.0.tar.gz
| Download URL | keepmeachangelog-0.2.0.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
560d0381ca402d791027d1f3c497389721a4cb6688e29c9aa2362d484e8e0cc4
|
|
BLAKE2b-256 checksum How to use checksums |
c80def9d09aa05bd8c1691216fd5e8470759b457cc65ebfb637b5a193ca886cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / keepmeachangelog-0.2.0-py3-none-any.whl
| Download URL | keepmeachangelog-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
891673a07cb888db456625ccc38e499c4ae5be9b9d8f0391cb88983fd19088bd
|
|
BLAKE2b-256 checksum How to use checksums |
5e546bdf8a9b4c13ba1ae78c1601817dc5cafe1bb4444d663b73f560f74c5ebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for keepmeachangelog 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for keepmeachangelog-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.