From c19aa3ccc82f3ed202a5ca530dda14c0532f2474 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Mon, 2 Dec 2019 15:44:34 +0100 Subject: linters: Add yamllint as part of linters Depends-On: https://github.com/ansible-network/ansible_collections.vyos.vyos/pull/56 --- .yamllint | 14 ++++++++++++++ test-requirements.txt | 1 + tox.ini | 1 + 3 files changed, 16 insertions(+) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..6f0d12b3 --- /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 4e92b9de..dfdd4f83 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 2a510d82..ee0591cc 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ install_command = pip install {opts} {packages} commands = black -v -l79 --check {toxinidir} flake8 {posargs} + yamllint -s . [testenv:venv] commands = {posargs} -- cgit v1.2.3