-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 882 Bytes
/
ruff.yml
File metadata and controls
42 lines (37 loc) · 882 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
36
37
38
39
40
41
42
name: Ruff
on:
push:
branches:
- master
paths:
- "**.py"
- ".github/workflows/ruff.yml"
- "pyproject.toml"
- "requirements.txt"
- "dev-requirements.txt"
pull_request:
paths:
- "**.py"
- ".github/workflows/ruff.yml"
- "pyproject.toml"
- "requirements.txt"
- "dev-requirements.txt"
# https://github.com/astral-sh/ruff-action
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python environment
uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Ruff lint
uses: astral-sh/ruff-action@v3
with:
args: check --verbose
- name: Ruff format
uses: astral-sh/ruff-action@v3
with:
args: format --check --verbose