Make changelog tool be more strict about suffixes (#70909) (#71135)

* Bump antsibull-changelog version.

* Flag all dotfiles, except .keep and .gitkeep.

* Enable ignoring other fragment extensions.

(cherry picked from commit fbfc0f99eb)
This commit is contained in:
Felix Fontein 2020-08-21 18:33:08 +02:00 committed by GitHub
parent 5f40a4efa6
commit 1252323e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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]