Skip to content

ci更新且规范了llmc大部分代码格式 #1

ci更新且规范了llmc大部分代码格式

ci更新且规范了llmc大部分代码格式 #1

Workflow file for this run

name: lint
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pre-commit hook
run: |
pip install pre-commit mmengine
pre-commit install
- name: Linting
run: pre-commit run --all-files