-
Notifications
You must be signed in to change notification settings - Fork 144
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
base: main
Are you sure you want to change the base?
feat(tooling,ci): add changelog formatting validation #1691
Conversation
2be974d
to
cd38818
Compare
Will fix the case of it flagging colons |
cd38818
to
3b3dc8e
Compare
There was a problem hiding this 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.
3b3dc8e
to
e76dab9
Compare
There was a problem hiding this 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!
.github/workflows/tox_verify.yaml
Outdated
@@ -82,6 +82,22 @@ jobs: | |||
- name: Build html documentation with mkdocs via tox | |||
run: uvx --with=tox-uv tox -e mkdocs | |||
|
|||
changelog: |
There was a problem hiding this comment.
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 = |
There was a problem hiding this comment.
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
^-
.
068a2be
to
de88d47
Compare
- Add CI check using grep to validate bullet points end with periods - Fix existing changelog entries missing periods
de88d47
to
62eeef0
Compare
ποΈ Description
π Related Issues
Fixes #1183
β Checklist