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.
pull/71119/head
Felix Fontein 4 years ago committed by GitHub
parent 4e55b93613
commit fbfc0f99eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,7 @@ changes_file: changelog.yaml
changes_format: combined
keep_fragments: true
always_refresh: true
ignore_other_fragment_extensions: true
mention_ancestor: false
notesdir: fragments
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
# 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
astroid == 2.2.5

@ -21,6 +21,10 @@ def main():
continue
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
ext = os.path.splitext(path)[1]

Loading…
Cancel
Save