From 0d48da060d3f0adf76768bb72bf75076c2d86c0e Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Fri, 22 Mar 2024 11:47:09 -0300 Subject: [PATCH] lint tools: bump code verification tools versions Bump version of ansible-lint, Flake8, Pylint and yamllint to newer versions as used in Ansible tests. --- .github/workflows/lint.yml | 2 +- .pre-commit-config.yaml | 10 +++++----- requirements-dev.txt | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 849d9a1d53..fb22861e57 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: python-version: "3.x" - name: Run ansible-lint run: | - pip install "ansible-core>=2.16,<2.17" 'ansible-lint>=6.22' + pip install "ansible-core>=2.16,<2.17" 'ansible-lint==6.22' utils/build-galaxy-release.sh -ki cd .galaxy-build ansible-lint --profile production --exclude tests/integration/ --exclude tests/unit/ --parseable --nocolor diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 323b56ea45..82bfbcd71f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/ansible/ansible-lint.git - rev: v6.22.0 + rev: v24.5.0 hooks: - id: ansible-lint always_run: false @@ -21,20 +21,20 @@ repos: --parseable --nocolor - repo: https://github.com/adrienverge/yamllint.git - rev: v1.32.0 + rev: v1.35.1 hooks: - id: yamllint files: \.(yaml|yml)$ - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/pycqa/pydocstyle - rev: 6.0.0 + rev: 6.3.0 hooks: - id: pydocstyle - repo: https://github.com/pycqa/pylint - rev: v3.0.2 + rev: v3.2.2 hooks: - id: pylint args: diff --git a/requirements-dev.txt b/requirements-dev.txt index 5df0f4335a..08e3366214 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,10 +1,10 @@ -r requirements-tests.txt ipdb==0.13.4 pre-commit==2.20.0 -flake8==6.0.0 +flake8==7.0.0 flake8-bugbear -pylint==2.17.2 +pylint>=3.2 wrapt==1.14.1 pydocstyle==6.3.0 -yamllint==1.32.0 -ansible-lint >= 6.22 +yamllint==1.35.1 +ansible-lint>=24.5.0