Skip to content

feat(tooling,ci): add changelog formatting validation #1691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardgreg
Copy link
Contributor

@richardgreg richardgreg commented May 31, 2025

πŸ—’οΈ Description

  • Add CI check using grep to validate bullet points end with periods
  • Fix existing changelog entries missing periods

πŸ”— Related Issues

Fixes #1183

βœ… Checklist

  • All: Set appropriate labels for the changes.
  • All: Added an entry to CHANGELOG.md.

@richardgreg richardgreg force-pushed the feature/changelog-validation branch from 2be974d to cd38818 Compare May 31, 2025 15:52
@richardgreg richardgreg changed the title feat(tooling,ci): add changelog formatting validation [WIP]feat(tooling,ci): add changelog formatting validation May 31, 2025
@richardgreg
Copy link
Contributor Author

richardgreg commented May 31, 2025

Will fix the case of it flagging colons

@richardgreg richardgreg force-pushed the feature/changelog-validation branch from cd38818 to 3b3dc8e Compare June 1, 2025 06:43
@richardgreg richardgreg changed the title [WIP]feat(tooling,ci): add changelog formatting validation feat(tooling,ci): add changelog formatting validation Jun 1, 2025
@danceratopz danceratopz self-requested a review June 3, 2025 10:03
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this. You've added this to the tox_verify.yaml workflow, which runs checks managed by tox.ini. I think this is correct, but to avoid surprises in CI, it should be readily executable from tox.ini, so it can easily be ran locally. I made a suggestion below where this could be added.

@richardgreg richardgreg force-pushed the feature/changelog-validation branch from 3b3dc8e to e76dab9 Compare June 4, 2025 09:37
@richardgreg richardgreg requested a review from danceratopz June 4, 2025 10:07
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments below, thanks!

@@ -82,6 +82,22 @@ jobs:
- name: Build html documentation with mkdocs via tox
run: uvx --with=tox-uv tox -e mkdocs

changelog:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be removed.

@@ -37,7 +37,10 @@ commands = python -c "import src.cli.tox_helpers; src.cli.tox_helpers.pyspelling
[testenv:markdownlint]
description = Lint markdown files (markdownlint)
extras = docs
commands = python -c "import src.cli.tox_helpers; src.cli.tox_helpers.markdownlint()"
allowlist_externals = bash
commands =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Ooh, this is a bit wordy in the terminal. Could you add a function to src/cli/tox_helpers.py and use this in tox.ini?
  • Also please improve the error message: colon ":" is also accepted as a line ending.
  • Additionally, I don't think the regex will catch nested lists due to ^-.

@richardgreg richardgreg force-pushed the feature/changelog-validation branch 2 times, most recently from 068a2be to de88d47 Compare June 7, 2025 06:41
@richardgreg richardgreg requested a review from danceratopz June 7, 2025 06:41
- Add CI check using grep to validate bullet points end with periods
- Fix existing changelog entries missing periods
@richardgreg richardgreg force-pushed the feature/changelog-validation branch from de88d47 to 62eeef0 Compare June 7, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(tooling,ci): add sanity checks for changelog format
2 participants