molecule/tox: Support yamllint without molecule

With molecule v3, the linter config needs to be changed. To prepare for
this, run yamllint with tox as molecule would do it for V3.
This commit is contained in:
Till Maas 2020-02-21 22:31:24 +01:00
parent 8cd37ac873
commit d32f4e5a7b
3 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,7 @@
# SPDX-License-Identifier: MIT
---
ignore: |
/.tox/
extends: default
rules:
braces:

View file

@ -7,7 +7,7 @@ driver:
lint:
name: yamllint
options:
config-file: molecule/default/yamllint.yml
config-file: .yamllint.yml
platforms:
- name: centos-6
image: docker.io/linuxsystemroles/centos-6

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT
[tox]
envlist =
black, pylint, flake8,
black, pylint, flake8, yamllint
py{26,27,36,37,38},
custom
skipsdist = true
@ -161,6 +161,10 @@ whitelist_externals =
commands =
bash {toxinidir}/.travis/runflake8.sh {envpython} --statistics {posargs} .
[testenv:yamllint]
deps = yamllint
commands = yamllint .
[testenv:coveralls]
envdir = {toxworkdir}/env-{env:TRAVIS_PYTHON_VERSION:coveralls}
passenv = TRAVIS TRAVIS_*
@ -265,6 +269,6 @@ python =
2.6: py26,custom
2.7: py27,flake8,pylint,custom
3.5: coveralls,custom
3.6: py36,black,custom
3.6: py36,black,yamllint,custom
3.7: py37,custom
3.8: py38,custom