-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (26 loc) · 826 Bytes
/
Copy pathruff.yml
File metadata and controls
28 lines (26 loc) · 826 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
name: "CI: Ruff checking"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "ruff>=0.15,<0.16"
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analysing the code with ruff
run: |
ruff format --check $(git ls-files '*.py')
ruff check $(git ls-files '*.py' | grep -v 'src/dsf/__init__.py')