From a916f84fc3c8f417cbadd973ce4f2dc1d30c393e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pep=20Turr=C3=B3=20Mauri?= Date: Tue, 4 Oct 2022 18:31:47 +0200 Subject: [PATCH 1/2] Run pre-commit only on the files modified by the PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pep TurrĂ³ Mauri --- .prow.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index b522f32859b..0f914c0505e 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -6,11 +6,14 @@ presubmits: context: aicoe-ci/prow/pre-commit spec: containers: - - image: quay.io/thoth-station/thoth-precommit-py38:v0.12.9 + - image: quay.io/thoth-station/thoth-precommit-py38:v0.15.0 command: - pre-commit - run - - --all-files + - --from-ref + - HEAD@{1} + - --to-ref + - HEAD resources: requests: memory: 1Gi From 6d8f1aede55e364203ba434eafd2eb39d6dfa819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pep=20Turr=C3=B3=20Mauri?= Date: Tue, 4 Oct 2022 18:43:39 +0200 Subject: [PATCH 2/2] Update pre-commit hook versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pep TurrĂ³ Mauri --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a7b4ffa23c..a884509bc9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,19 @@ --- repos: - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.13 + rev: v1.3.1 hooks: - id: remove-tabs - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.3.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.3 + rev: v1.28.0 hooks: - id: yamllint args: [-c=.yamllint]