-
-
Notifications
You must be signed in to change notification settings - Fork 137
35 lines (27 loc) · 799 Bytes
/
Copy pathlint-ruff.yml
File metadata and controls
35 lines (27 loc) · 799 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 (TRY400 + pyflakes)
# Ruff enforces the same pyflakes/pycodestyle rules as the flake8 gate PLUS
# TRY400 (logging.error inside an except block must be logging.exception) - a rule
# flake8 cannot express. Config + select live in ruff.toml. Independent of the
# test/build workflows; a red result here does not block them.
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
permissions:
contents: read
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install ruff
run: |
python -m pip install --upgrade pip
pip install ruff==0.14.0
- name: Run ruff check
run: ruff check .