-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpre-commit.yaml
More file actions
27 lines (25 loc) · 931 Bytes
/
pre-commit.yaml
File metadata and controls
27 lines (25 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
files:
- .github/workflows/z-pre-commit.yaml:
content: |
name: z-pre-commit
on:
pull_request:
branches: [{{@ current_repo() | default_branch @}}]
push:
branches: [{{@ current_repo() | default_branch @}}]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@{{@ "actions/checkout" | latest_release @}}
- uses: actions/setup-python@{{@ "actions/setup-python" | latest_release @}}
- uses: pre-commit/action@{{@ "pre-commit/action" | latest_release @}}
- .pre-commit-config.yaml:
content: |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: {{@ "pre-commit/pre-commit-hooks" | latest_release @}}
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace