From 51eb7e05a2ef5e184a75c69b9f99ca11767bf675 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 14 Oct 2025 17:53:08 +0200 Subject: Switch to pypi version of j2lint and fix linting errors Since ipwrap filter is getting moved another time inside ansible code - let's switch to j2lint that is actively maintained and it's rules will help in readability of jinja2 templates Change-Id: I6762b691b927de31fa1abd83c4c14e87226fe5e2 Signed-off-by: Michal Nasiadka --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 054b84301..c6fe231b8 100644 --- a/tox.ini +++ b/tox.ini @@ -149,8 +149,7 @@ commands = bandit --skip B303 -r ansible kolla_ansible tests tools [testenv:j2lint] deps = {[testenv:linters]deps} -commands = - find {toxinidir} -type f -name "*.j2" -not -path "*/.tox/*" -exec {toxinidir}/tests/j2lint.py \{\} + +commands = j2lint ansible/ roles/ tests/ --ignore single-statement-per-line [testenv:ansible-lint] # Lint only code in ansible/* - ignore tests/ and roles/ used by CI -- cgit v1.2.3