Skip to content

Commit

Permalink
Pin Jinja2<3.1
Browse files Browse the repository at this point in the history
This change fixes a warning thrown when running ansible-lint:

  Warning: : Skipping plugin (/home/runner/work/zosci-config/zosci-
  config/.tox/linters/lib/python3.8/site-
  packages/ansible/plugins/filter/mathstuff.py) as it seems to be invalid: cannot
  import name 'environmentfilter' from 'jinja2.filters' (/home/runner/work/zosci-
  config/zosci-config/.tox/linters/lib/python3.8/site-packages/jinja2/filters.py)
  • Loading branch information
freyes committed Mar 16, 2023
1 parent 45471ce commit 4d3b364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ deps =
# production.
#
# https://github.com/ansible-community/ansible-lint/issues/1795
# Warning: : Skipping plugin ([...]/ansible/plugins/filter/mathstuff.py) as it seems to be invalid: cannot import name 'environmentfilter' from 'jinja2.filters'
Jinja2<3.1
rich>=9.5.1,<11.0.0
ansible>=2.8,<=2.9
ansible-lint>=4.2.0,<5
Expand Down

0 comments on commit 4d3b364

Please sign in to comment.