Alexandre
commited on
Commit
·
b2bfab2
1
Parent(s):
fa24889
Create precommit-action.yml
Browse files
.github/workflows/precommit-action.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: pre-commit
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
pull_request:
|
| 5 |
+
branches: [main, master]
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
pre-commit:
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
steps:
|
| 11 |
+
- uses: actions/checkout@v4
|
| 12 |
+
- uses: actions/setup-python@v5
|
| 13 |
+
with:
|
| 14 |
+
python-version: '3.10'
|
| 15 |
+
- name: Install pre-commit
|
| 16 |
+
run: pip install pre-commit
|
| 17 |
+
- name: Run pre-commit
|
| 18 |
+
run: pre-commit run --all-files
|