Skip to content

Commit

Permalink
Merge pull request #30488 from codificat/partial-pre-commit
Browse files Browse the repository at this point in the history
Run pre-commit only on the files modified by the PR
  • Loading branch information
sesheta authored Oct 6, 2022
2 parents eef45cd + 6d8f1ae commit 5736d5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
7 changes: 5 additions & 2 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5736d5b

Please sign in to comment.