diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..6f0d12b --- /dev/null +++ b/.yamllint @@ -0,0 +1,14 @@ +--- +extends: default + +ignore: | + .tox + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + line-length: disable diff --git a/test-requirements.txt b/test-requirements.txt index 4e92b9d..dfdd4f8 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,3 @@ black flake8 +yamllint diff --git a/tox.ini b/tox.ini index 2a510d8..ee0591c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,27 @@ [tox] minversion = 1.4.2 envlist = linters skipsdist = True [testenv] deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt [testenv:linters] install_command = pip install {opts} {packages} commands = black -v -l79 --check {toxinidir} flake8 {posargs} + yamllint -s . [testenv:venv] commands = {posargs} [flake8] # E123, E125 skipped as they are invalid PEP-8. show-source = True ignore = E123,E125,E402,W503 max-line-length = 160 builtins = _ exclude = .git,.tox