mirror of
https://github.com/huggingface/kernels.git
synced 2025-10-20 21:10:02 +08:00
Run black check (#124)
This commit is contained in:
21
.github/workflows/lint.yml
vendored
21
.github/workflows/lint.yml
vendored
@ -8,3 +8,24 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run ruff
|
||||
uses: astral-sh/ruff-action@v3
|
||||
|
||||
black:
|
||||
name: Run black check
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
UV_PYTHON_PREFERENCE: only-managed
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv and set the python version
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
|
||||
- name: Install black
|
||||
run: uv pip install black
|
||||
|
||||
- name: Check formatting
|
||||
run: |
|
||||
uv run black --check src
|
||||
uv run black --check tests
|
||||
|
Reference in New Issue
Block a user