Make changelog tool be more strict about suffixes (#70909)
* Bump antsibull-changelog version. * Flag all dotfiles, except .keep and .gitkeep. * Enable ignoring other fragment extensions.
This commit is contained in:
parent
4e55b93613
commit
fbfc0f99eb
3 changed files with 6 additions and 1 deletions
|
@ -6,6 +6,7 @@ changes_file: changelog.yaml
|
||||||
changes_format: combined
|
changes_format: combined
|
||||||
keep_fragments: true
|
keep_fragments: true
|
||||||
always_refresh: true
|
always_refresh: true
|
||||||
|
ignore_other_fragment_extensions: true
|
||||||
mention_ancestor: false
|
mention_ancestor: false
|
||||||
notesdir: fragments
|
notesdir: fragments
|
||||||
prelude_section_name: release_summary
|
prelude_section_name: release_summary
|
||||||
|
|
|
@ -45,7 +45,7 @@ setuptools < 37 ; python_version == '2.6' # setuptools 37 and later require pyth
|
||||||
setuptools < 45 ; python_version == '2.7' # setuptools 45 and later require python 3.5 or later
|
setuptools < 45 ; python_version == '2.7' # setuptools 45 and later require python 3.5 or later
|
||||||
|
|
||||||
# freeze antsibull-changelog for consistent test results
|
# freeze antsibull-changelog for consistent test results
|
||||||
antsibull-changelog == 0.3.1
|
antsibull-changelog == 0.7.0
|
||||||
|
|
||||||
# freeze pylint and its requirements for consistent test results
|
# freeze pylint and its requirements for consistent test results
|
||||||
astroid == 2.2.5
|
astroid == 2.2.5
|
||||||
|
|
|
@ -21,6 +21,10 @@ def main():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if path.startswith('changelogs/fragments/.'):
|
if path.startswith('changelogs/fragments/.'):
|
||||||
|
if path in ('changelogs/fragments/.keep', 'changelogs/fragments/.gitkeep'):
|
||||||
|
continue
|
||||||
|
|
||||||
|
print('%s:%d:%d: file must not be a dotfile' % (path, 0, 0))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ext = os.path.splitext(path)[1]
|
ext = os.path.splitext(path)[1]
|
||||||
|
|
Loading…
Reference in a new issue