check that changelog conforms to 'Keep A Changelog' style
Project description
check-changelog
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 reportsCHANGELOG.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
Built Distribution
File details
Details for the file check_changelog-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: check_changelog-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab3d926792dd476a4f820751a2ad184951084ac9e38fb3e2e2289f17e4a5488 |
|
MD5 | f6900f8cb45eae31fd5b74578a0c26db |
|
BLAKE2b-256 | d39d99e79a43c002329ccfc91a5aca92891411e568d361466f910586782f704f |