Skip to main content

keepmeachangelog

Tests Coverage Release Latest release Python pre-commit Ruff Keep a Changelog SemVer

Linter for changelogs following Keep a Changelog 1.1.0.

pre-commit

repos:
  - repo: https://github.com/dcotecnologia/keepmeachangelog-lint
    rev: v0.1.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.

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
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

  • # Changelog title
  • 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 (Unreleased is exempt)
  • sections allowed by release type, comparing each version with the previous one: patch: Fixed, Security; minor: also Added, Changed, Deprecated; major/other: also Removed
  • validation-depth counts the newest N released versions (Unreleased excluded); the oldest one in the window is not compared with a predecessor
  • --version-from pyproject.toml fails 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 none).

License

MIT

Metadata

Release files for keepmeachangelog 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keepmeachangelog 0.1.0
File Size Uploaded Provenance Actions
keepmeachangelog-0.1.0.tar.gz 31.0 kB With provenance Details for keepmeachangelog-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keepmeachangelog 0.1.0
File Interpreter ABI Platform Actions
keepmeachangelog-0.1.0-py3-none-any.whl Python 3 none any Details for keepmeachangelog-0.1.0-py3-none-any.whl

Total release size: 41.3 kB

Release files / keepmeachangelog-0.1.0.tar.gz

Download URL keepmeachangelog-0.1.0.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d042f63840bbc994f17d2dadaa84f16433ac8d8e271123273cce1358579f2cd9
BLAKE2b-256 checksum
How to use checksums
6c7f1c04ff9d78ab1f13cc2895a6ec00300253374448f88cfd6f615b403979d8
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 16, 2026.

Transparency log

Release files / keepmeachangelog-0.1.0-py3-none-any.whl

Download URL keepmeachangelog-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70fb8828da425eef1e9a79fe64b968784136c081e2ea11037f7524fd6ceeb2c2
BLAKE2b-256 checksum
How to use checksums
c8fe404b9e131ab1258f1752d99b3475b749ba7d520dc2b70ba75aded33e5d64
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 16, 2026.

Transparency log

Security for keepmeachangelog 0.1.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.

Select from 2 files

Attestation for keepmeachangelog-0.1.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 16, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page