mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-24 18:09:10 -07:00
Fix typo in doc_fragments path.
This commit is contained in:
parent
384f4f1cef
commit
ade6977d66
3 changed files with 3 additions and 3 deletions
|
@ -585,7 +585,7 @@ class PathMapper(object):
|
||||||
'units': 'all',
|
'units': 'all',
|
||||||
}
|
}
|
||||||
|
|
||||||
if path.startswith('lib/ansible/plugins/docs_fragments/'):
|
if path.startswith('lib/ansible/plugins/doc_fragments/'):
|
||||||
return {
|
return {
|
||||||
'sanity': 'all',
|
'sanity': 'all',
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ class YamllintTest(SanitySingleVersion):
|
||||||
|
|
||||||
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
|
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
|
||||||
os.path.basename(i.path) != '__init__.py' and
|
os.path.basename(i.path) != '__init__.py' and
|
||||||
i.path.startswith('lib/ansible/plugins/docs_fragments/')],
|
i.path.startswith('lib/ansible/plugins/doc_fragments/')],
|
||||||
]
|
]
|
||||||
|
|
||||||
paths = [sorted(p) for p in paths if p]
|
paths = [sorted(p) for p in paths if p]
|
||||||
|
|
|
@ -147,7 +147,7 @@ class YamlChecker(object):
|
||||||
for body_statement in module_ast.body:
|
for body_statement in module_ast.body:
|
||||||
if isinstance(body_statement, ast.Assign):
|
if isinstance(body_statement, ast.Assign):
|
||||||
check_assignment(body_statement, module_doc_types)
|
check_assignment(body_statement, module_doc_types)
|
||||||
elif path.startswith('lib/ansible/plugins/docs_fragments/'):
|
elif path.startswith('lib/ansible/plugins/doc_fragments/'):
|
||||||
for body_statement in module_ast.body:
|
for body_statement in module_ast.body:
|
||||||
if isinstance(body_statement, ast.ClassDef):
|
if isinstance(body_statement, ast.ClassDef):
|
||||||
for class_statement in body_statement.body:
|
for class_statement in body_statement.body:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue