forked from Taiko2k/Tauon
-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1021 Bytes
/
ruff.yaml
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
36
37
38
39
40
name: Build and release
# Temporarily only run outside of master to not have ugly red checkmarks there, needs ruleset changes, #1388 merged and a bunch of code polish to be really useful
on:
push:
branches:
- '*'
- '!master'
pull_request:
branches:
- '*'
- '!master'
jobs:
ruff:
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Python dependencies and setup venv
run: |
python -m pip install --upgrade pip
python -m venv .venv
source .venv/bin/activate
pip install ruff
- name: Run Ruff
# We do not want to completely fail all CI if Ruff has complaints
continue-on-error: true
run: |
source .venv/bin/activate
ruff check --config pyproject.toml .