Disable extra changelog fragment lint sanity test. (#68)

pull/70/head
Felix Fontein 2020-06-14 17:43:49 +02:00 committed by GitHub
parent bbb48b6961
commit 15288753cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 39 deletions

View File

@ -1,10 +0,0 @@
{
"python": "3.7",
"output": "path-line-column-message",
"prefixes": [
"changelogs/fragments/"
],
"requirements": [
"antsibull-changelog"
]
}

View File

@ -1,29 +0,0 @@
#!/usr/bin/env python
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import sys
import subprocess
def main():
paths = sys.argv[1:] or sys.stdin.read().splitlines()
allowed_extensions = ('.yml', '.yaml')
for path in paths:
ext = os.path.splitext(path)[1]
if ext not in allowed_extensions:
print('%s:%d:%d: extension must be one of: %s' % (path, 0, 0, ', '.join(allowed_extensions)))
cmd = ['antsibull-changelog', 'lint'] + paths
subprocess.check_call(cmd)
if __name__ == '__main__':
main()