-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (35 loc) · 975 Bytes
/
Copy pathlinting.yml
File metadata and controls
43 lines (35 loc) · 975 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
43
name: Linting
on:
push:
branches:
- master
- develop
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
resolution-strategy: "lowest"
cache-dependency-glob: "uv.lock"
activate-environment: true
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --all-groups
- name: Run pre-commit hooks
run: SKIP=ruff prek run --all-files
# Run `ruff` using github formatting to enable automatic inline annotations.
- name: Run ruff
run: "ruff check --output-format=github ."