Add a tox environment and associated support for running the
yamllint YAML style checking utility. This tool should be used to
check all edits made to any included YAML files for ease of
readability and future maintenance. It can also be used to check
YAML data generated by the mudpy engine, as its output style matches
the expectations of yamllint's default ruleset. One override has
been added via the included .yamllint configuration file, to prevent
it complaining about the extremely long PBKDF2 password hashes in
account elements which can't effectively be line-wrapped when
written.
--- /dev/null
+extends: default
+rules:
+ line-length:
+ allow-non-breakable-inline-mappings: true
-# Copyright (c) 2016 Jeremy Stanley <fungi@yuggoth.org>. Permission
+# Copyright (c) 2016-2017 Jeremy Stanley <fungi@yuggoth.org>. Permission
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
flake8
+yamllint
[tox]
minversion = 2.0
-envlist = flake8
+envlist = flake8, yamllint
skipsdist = True
[testenv]
+basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:flake8]
-basepython=python3
commands = flake8 {posargs}
+[testenv:yamllint]
+commands = yamllint {posargs} .
+
[testenv:venv]
commands = {posargs}