Update pep8 test requirements
Change-Id: I9a50f796b0b2ce762e1054a6b5e900ccd53bf796
This commit is contained in:
parent
ab69212fe7
commit
5e5e421ddd
@ -105,7 +105,7 @@ class AnsibleAutoPluginDirective(Directive):
|
||||
|
||||
@staticmethod
|
||||
def build_documentation(module):
|
||||
docs = DOCYAML.load(module.DOCUMENTATION)
|
||||
docs = DOCYAML.load(module.DOCUMENTATION, Loader=yaml.FullLoader)
|
||||
doc_data = dict()
|
||||
doc_data['docs'] = docs['description']
|
||||
doc_data['author'] = docs.get('author', list())
|
||||
@ -114,7 +114,7 @@ class AnsibleAutoPluginDirective(Directive):
|
||||
|
||||
@staticmethod
|
||||
def build_examples(module):
|
||||
examples = DOCYAML.load(module.EXAMPLES)
|
||||
examples = DOCYAML.load(module.EXAMPLES, Loader=yaml.FullLoader)
|
||||
return_examples = list()
|
||||
for example in examples:
|
||||
return_examples.append(DOCYAML.dump([example], sort_keys=False))
|
||||
|
6
tox.ini
6
tox.ini
@ -44,10 +44,10 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY \
|
||||
[testenv:pep8]
|
||||
deps =
|
||||
Pygments>=2.2.0 # BSD
|
||||
doc8>=0.6.0 # Apache-2.0
|
||||
doc8>=0.8.1 # Apache-2.0
|
||||
flake8-import-order>=0.17.1 # LGPLv3
|
||||
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
||||
pycodestyle>=2.0.0,<2.7.0 # MIT
|
||||
hacking>=4.1.0,<5.0.0 # Apache-2.0
|
||||
pycodestyle>=2.0.0,<3.0.0 # MIT
|
||||
commands =
|
||||
flake8 metalsmith
|
||||
doc8 README.rst doc/source metalsmith_ansible/roles
|
||||
|
Loading…
Reference in New Issue
Block a user