diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2025-10-14 17:53:08 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2025-12-30 16:31:17 +0000 |
| commit | 51eb7e05a2ef5e184a75c69b9f99ca11767bf675 (patch) | |
| tree | b18234f65d587c460d5a75670472e0a2c769186f /tox.ini | |
| parent | 35e61acc6beab92d2f1286f569ae694f4192f1b3 (diff) | |
| download | kolla-ansible-51eb7e05a2ef5e184a75c69b9f99ca11767bf675.tar.gz kolla-ansible-51eb7e05a2ef5e184a75c69b9f99ca11767bf675.zip | |
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 <mnasiadka@gmail.com>
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |
