update lint workflow (#19)

This commit is contained in:
Lufang Chen
2025-09-11 13:43:22 +08:00
committed by GitHub
parent e9332a283d
commit cca7652657
+26
View File
@@ -0,0 +1,26 @@
name: Pre-commit
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files