1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-30 20:30:09 +02:00

Changelog now runs codespell to fix the spellings in the commit comments.

This commit is contained in:
Chris Palmer
2021-06-17 16:15:46 +01:00
parent b239c1462e
commit 92d0444e5f
2 changed files with 13 additions and 11 deletions

View File

@@ -24,6 +24,7 @@ from __future__ import print_function
import sys
import subprocess
import re
from tests import do_cmd
filename = 'CHANGELOG.md'
@@ -162,3 +163,4 @@ if __name__ == '__main__':
if not c.comment.startswith('Merge branch') and not c.comment.startswith('Merge pull') and not re.match(r'U..ated changelog.*', c.comment):
print('* %s [`%s`](%s "show commit") %s %s\n' % (c.date, c.hash[:7], url + '/commit/' + c.hash, initials(c.author), fixup_comment(c.comment, url)), file = file)
do_cmd(('codespell -w -L od ' + filename).split())