-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 867 Bytes
/
Copy pathpython_linting.yml
File metadata and controls
33 lines (27 loc) · 867 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
name: Python Linting
on:
push:
paths:
- "*.py"
pull_request:
paths:
- "*.py"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup uv
uses: astral-sh/setup-uv@v8.1.0
with:
version: "latest"
version-file: "pyproject.toml"
- name: Ruff formatting check
run: uv tool run ruff format --check prowlpy/
- name: Ruff lint
run: uv tool run ruff check --output-format=github prowlpy/
- name: Refurb lint
run: uv tool run refurb --format github prowlpy/