From 01d323b4c270a16169e8a145e0dd3f037783bd41 Mon Sep 17 00:00:00 2001 From: Michal Konečný Date: Apr 25 2022 12:28:02 +0000 Subject: [PATCH 1/2] Use existing zuul job instead of creating new one There is already a job in https://pagure.io/fedora-infra/zuul which does the same thing as existing job in monitor gating. Signed-off-by: Michal Konečný --- diff --git a/.zuul.yaml b/.zuul.yaml index af08bf4..3a9d515 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,10 +1,5 @@ --- -- job: - name: gating-pre-commit - run: ci/gating-pre-commit.yaml - nodeset: fedora-35-vm - - project: check: jobs: - - gating-pre-commit + - fi-pre-commit diff --git a/ci/gating-pre-commit.yaml b/ci/gating-pre-commit.yaml deleted file mode 100644 index fd2077e..0000000 --- a/ci/gating-pre-commit.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- hosts: all - - tasks: - - name: List project directory on the test system - command: "ls -al {{ ansible_user_dir }}/{{ zuul.project.src_dir }}" - - - name: install pip - become: true - package: - name: python3-pip - state: present - - - name: install pre-commit - command: pip install pre-commit --user - - - name: run pre-commit - command: - chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" - cmd: pre-commit run --all From f5eb2cea834665d7c4f1d1ce460198012ed1eb06 Mon Sep 17 00:00:00 2001 From: Michal Konečný Date: Apr 25 2022 12:36:13 +0000 Subject: [PATCH 2/2] Use newer black for check The current version of black set in .pre-commit-config.yaml fails with ImportError. Newer one should fix this. Signed-off-by: Michal Konečný --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23b9c66..284cda8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: flake8 - repo: https://github.com/psf/black - rev: 21.11b1 + rev: 22.3.0 hooks: - id: black args: