Skip to main content

check that changelog conforms to 'Keep A Changelog' style

Project description

check-changelog

pkg - version pkg - python versions pkg - license


check that changelog conforms to Keep A Changelog and Common Changelog styles.

Main features:

  • check that changelog conforms to Keep A Changelog style

  • allow release notes. Add them between the release header and change list (Common Changelog addition)

    ## [1.0.0] - 2023-05-05
    Release notes
    
    ### Added
     - add feature ...
    
  • allow custom footer to keep things from being verified. Useful for legal notes, text used by other scripts, HTML comments, etc

    -----
    Linter will ignore this section.
    <!--- message for some script -->
    [my site]: http://mysite.com
    
  • gcc style error reports

    CHANGELOG.md:10: bad release title: [0.2.1]; expected '[Unreleased]' or '[ver] - YYYY-MM-DD'
    CHANGELOG.md:12: bad change type: Changed2; expected one of ['Added', 'Changed', ...]
    

Installation

pip install check-changelog

Usage

From command line

# check CHANGELOG.md in a current dir
check-changelog
# check specific CHANGELOG.md
check-changelog -f path/to/changelog.md

As a pre-commit hook. Add this section to your .pre-commit-config.yaml

- repo: https://github.com/aanatoly/check-changelog
  rev: '0.2.1'
  hooks:
    - id: check-changelog

Alternatives

check-changelog is a minimalistic tool by design. It checks the Changelog structure and does nothing else.

If you are looking for more, check python-kacl. It is a feature-rich tool capable of linting, fixing errors, and automating Changelog maintenance.

Development

See development doc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

check_changelog-0.2.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file check_changelog-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for check_changelog-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab3d926792dd476a4f820751a2ad184951084ac9e38fb3e2e2289f17e4a5488
MD5 f6900f8cb45eae31fd5b74578a0c26db
BLAKE2b-256 d39d99e79a43c002329ccfc91a5aca92891411e568d361466f910586782f704f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page