From ade61b299ffa45c70b4dabf90567b88078859537 Mon Sep 17 00:00:00 2001 From: rabi Date: Wed, 12 Jan 2022 12:24:18 +0530 Subject: [PATCH] Bump ansible-lint to 5.3.2 Bump to latest version that fixes issues with rich 11. We need to fix the linting issues as followup. Change-Id: Ie9707333454aca755db8daa272e3408ecbbf55da --- .ansible-lint | 7 +++++++ .pre-commit-config.yaml | 17 ++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..0fe6576 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +skip_list: + - role-name + - unnamed-task + - command-instead-of-shell + - no-changed-when + - no-handler + - yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 865235f..d51b44a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,17 +25,16 @@ repos: types: [file, yaml] entry: yamllint --strict -f parsable - repo: https://github.com/ansible/ansible-lint - rev: v4.3.5 + rev: v5.3.2 hooks: - id: ansible-lint - additional_dependencies: - - 'ansible<2.10' - files: \.(yaml|yml)$ - entry: >- - ansible-lint --force-color -v -x "ANSIBLE0006,ANSIBLE0007,ANSIBLE0010,ANSIBLE0012,ANSIBLE0013,ANSIBLE0016" --exclude zuul.d/ - # TODO(cloudnull): These codes were added to pass the lint check. - # Things found within roles.galaxy are external - # and not something maintained here. + always_run: true + pass_filenames: false + # do not add file filters here as ansible-lint does not give reliable + # results when called with individual files. + # https://github.com/ansible/ansible-lint/issues/611 + verbose: true + entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v --exclude zuul.d/ - repo: https://github.com/openstack-dev/bashate.git rev: 0.6.0 hooks: