Skip to content

Commit bf40107

Browse files
authored
Create pre-commit.yml
1 parent fe2cd2c commit bf40107

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# https://pre-commit.com
2+
# https://github.com/pre-commit/action
3+
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
4+
# Using pre-commit.ci is even better that using GitHub Actions for pre-commit.
5+
name: pre-commit
6+
on:
7+
pull_request:
8+
push:
9+
branches: [main]
10+
workflow_dispatch:
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)