mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
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:
parent
8cd37ac873
commit
d32f4e5a7b
3 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
---
|
||||
ignore: |
|
||||
/.tox/
|
||||
extends: default
|
||||
rules:
|
||||
braces:
|
||||
|
|
@ -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
|
||||
|
|
|
|||
8
tox.ini
8
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue