forked from hed-standard/hed-python
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 691 Bytes
/
Copy pathruff.yaml
File metadata and controls
35 lines (28 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Ruff
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
ruff:
name: Check for style errors and common problems
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
- name: Create virtual environment
run: |
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
- name: Install Ruff
run: uv pip install "ruff>=0.8.0"
- name: Run Ruff linter
run: ruff check .